From 690f19195f8e526750c5413c5a5a261c95cd55bf Mon Sep 17 00:00:00 2001 From: Erwan Tulou Date: Sat, 28 Aug 2010 18:33:36 +0200 Subject: [PATCH] skins2(Win32) : fix GDI leak (trac #4101) --- modules/gui/skins2/win32/win32_graphics.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gui/skins2/win32/win32_graphics.cpp b/modules/gui/skins2/win32/win32_graphics.cpp index 8a6536c822..9ded675734 100644 --- a/modules/gui/skins2/win32/win32_graphics.cpp +++ b/modules/gui/skins2/win32/win32_graphics.cpp @@ -72,6 +72,7 @@ void Win32Graphics::clear( int xDest, int yDest, int width, int height ) HRGN mask = CreateRectRgn( xDest, yDest, xDest + width, yDest + height ); CombineRgn( m_mask, m_mask, mask, RGN_DIFF ); + DeleteObject( mask ); } } -- 2.11.4.GIT