From b8a79f36431a98559ccbb240106040ac85729351 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Tue, 6 Sep 2011 01:16:27 +0200 Subject: [PATCH] MSW: release the HICON later --- modules/video_output/msw/events.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c index 7c7aef0aaa..51de721f64 100644 --- a/modules/video_output/msw/events.c +++ b/modules/video_output/msw/events.c @@ -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 -- 2.39.2