Commit b8a79f36 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MSW: release the HICON later

parent ce3960e8
......@@ -708,13 +708,13 @@ static void DirectXCloseWindow( event_thread_t *p_event )
vout_display_DeleteWindow( vd, p_event->parent_window );
p_event->hwnd = NULL;
if( p_event->vlc_icon )
DestroyIcon( p_event->vlc_icon );
HINSTANCE hInstance = GetModuleHandle(NULL);
UnregisterClass( p_event->class_video, hInstance );
UnregisterClass( p_event->class_main, hInstance );
if( p_event->vlc_icon )
DestroyIcon( p_event->vlc_icon );
#ifndef UNDER_CE
DestroyCursor( p_event->cursor_empty );
#endif
......
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