Corrected wrong use of delete in region code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -483,12 +483,12 @@ public:
|
||||
|
||||
wxRIRefData::~wxRIRefData()
|
||||
{
|
||||
delete m_rects;
|
||||
delete [] m_rects;
|
||||
}
|
||||
|
||||
void wxRIRefData::CreateRects( const wxRegion& region )
|
||||
{
|
||||
delete m_rects;
|
||||
delete [] m_rects;
|
||||
|
||||
Init();
|
||||
|
||||
|
@@ -483,12 +483,12 @@ public:
|
||||
|
||||
wxRIRefData::~wxRIRefData()
|
||||
{
|
||||
delete m_rects;
|
||||
delete [] m_rects;
|
||||
}
|
||||
|
||||
void wxRIRefData::CreateRects( const wxRegion& region )
|
||||
{
|
||||
delete m_rects;
|
||||
delete [] m_rects;
|
||||
|
||||
Init();
|
||||
|
||||
|
@@ -434,13 +434,13 @@ public:
|
||||
|
||||
wxRIRefData::~wxRIRefData()
|
||||
{
|
||||
delete m_rects;
|
||||
delete [] m_rects;
|
||||
}
|
||||
|
||||
void wxRIRefData::CreateRects( const wxRegion& region )
|
||||
{
|
||||
if (m_rects)
|
||||
delete m_rects;
|
||||
delete [] m_rects;
|
||||
|
||||
m_rects = 0;
|
||||
m_numRects = 0;
|
||||
|
Reference in New Issue
Block a user