]> git.sesse.net Git - vlc/commitdiff
skins2(Win32) : fix GDI leak (trac #4101)
authorErwan Tulou <erwan10@videolan.org>
Sat, 28 Aug 2010 16:33:36 +0000 (18:33 +0200)
committerErwan Tulou <erwan10@videolan.org>
Sat, 28 Aug 2010 16:45:51 +0000 (18:45 +0200)
modules/gui/skins2/win32/win32_graphics.cpp

index 8a6536c8224330a4dbdf9b18ba2142a619ee7bb9..9ded675734b879af45cdd1a0b4cf23cf20091886 100644 (file)
@@ -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 );
     }
 }