[vlc-commits] MSW: release the HICON later

Jean-Baptiste Kempf git at videolan.org
Tue Sep 6 01:18:43 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Sep  6 01:16:27 2011 +0200| [b8a79f36431a98559ccbb240106040ac85729351] | committer: Jean-Baptiste Kempf

MSW: release the HICON later

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

 modules/video_output/msw/events.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c
index 7c7aef0..51de721 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



More information about the vlc-commits mailing list