]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed HRGN leak in DoSetClippingRegion
authorJulian Smart <julian@anthemion.co.uk>
Wed, 4 Jul 2001 06:37:57 +0000 (06:37 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 4 Jul 2001 06:37:57 +0000 (06:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index 11e667c925e99dacc9fd5addfffd61be5e2e1fb6..0bbb739078c962f7f06f791924531db6b915e6da 100644 (file)
@@ -297,6 +297,7 @@ void wxDC::DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
         {
             wxLogLastError(_T("SelectClipRgn"));
         }
+        DeleteObject(hrgn);
 
         UpdateClipBox();
     }