vlc/vlc-1.1 | branch: master | Erwan Tulou <[email protected]> | Sat Aug 28 
18:33:36 2010 +0200| [6e0c6291757b1cf54a3e0338a2567cbfb1dd5228] | committer: 
Erwan Tulou 

skins2(Win32) : fix GDI leak (trac #4101) (cherry picked from commit 
690f19195f8e526750c5413c5a5a261c95cd55bf)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=6e0c6291757b1cf54a3e0338a2567cbfb1dd5228
---

 modules/gui/skins2/win32/win32_graphics.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/skins2/win32/win32_graphics.cpp 
b/modules/gui/skins2/win32/win32_graphics.cpp
index 8a6536c..9ded675 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 );
     }
 }
 

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to