X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f0fb1d4165f622ab392a28c1a08a975aa7c5378..e715f4e791fca58d82b01a973807aa0cd866c99f:/src/gtk1/region.cpp diff --git a/src/gtk1/region.cpp b/src/gtk1/region.cpp index fee7f0eb26..11ca072cd3 100644 --- a/src/gtk1/region.cpp +++ b/src/gtk1/region.cpp @@ -39,6 +39,7 @@ public: } wxRegionRefData(const wxRegionRefData& refData) + : wxObjectRefData() { #ifdef __WXGTK20__ m_region = gdk_region_copy(refData.m_region); @@ -66,8 +67,8 @@ public: #define M_REGIONDATA ((wxRegionRefData *)m_refData) #define M_REGIONDATA_OF(rgn) ((wxRegionRefData *)(rgn.m_refData)) -IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject); -IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject); +IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject) +IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject) // ---------------------------------------------------------------------------- // wxRegion construction @@ -483,12 +484,12 @@ public: wxRIRefData::~wxRIRefData() { - delete m_rects; + delete [] m_rects; } void wxRIRefData::CreateRects( const wxRegion& region ) { - delete m_rects; + delete [] m_rects; Init();