Fixed HRGN leak in DoSetClippingRegion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -297,6 +297,7 @@ void wxDC::DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
|
||||
{
|
||||
wxLogLastError(_T("SelectClipRgn"));
|
||||
}
|
||||
DeleteObject(hrgn);
|
||||
|
||||
UpdateClipBox();
|
||||
}
|
||||
|
Reference in New Issue
Block a user