Commit 468b78de authored by Sergey Radionov's avatar Sergey Radionov Committed by Rafaël Carré

fixed GDI leaks

Signed-off-by: Rafaël Carré's avatarRafaël Carré <funman@videolan.org>
parent da830ed4
......@@ -39,6 +39,17 @@ struct VLCViewResources
hPlayBitmap(0), hVolumeBitmap(0), hVolumeMutedBitmap(0),
hBackgroundIcon(0)
{};
~VLCViewResources()
{
if( hNewMessageBitmap ) DeleteObject( hNewMessageBitmap );
if( hFullscreenBitmap ) DeleteObject( hFullscreenBitmap );
if( hDeFullscreenBitmap ) DeleteObject( hDeFullscreenBitmap );
if( hPauseBitmap ) DeleteObject( hPauseBitmap );
if( hPlayBitmap ) DeleteObject( hPlayBitmap );
if( hVolumeBitmap ) DeleteObject( hVolumeBitmap );
if( hVolumeMutedBitmap ) DeleteObject( hVolumeMutedBitmap );
if( hBackgroundIcon ) DestroyIcon ( hBackgroundIcon );
}
HANDLE hNewMessageBitmap;
HANDLE hFullscreenBitmap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment