Delete wxDC object when exiting from wxPropertyGrid::OnPaint
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1860,7 +1860,10 @@ void wxPropertyGrid::OnPaint( wxPaintEvent& WXUNUSED(event) )
|
||||
|
||||
// Don't paint after destruction has begun
|
||||
if ( !HasInternalFlag(wxPG_FL_INITIALIZED) )
|
||||
{
|
||||
delete dcPtr;
|
||||
return;
|
||||
}
|
||||
|
||||
// Find out where the window is scrolled to
|
||||
int vx,vy; // Top left corner of client
|
||||
|
Reference in New Issue
Block a user