[vlc-devel] [PATCH 5/5] npapi win32: fixed crash on close with active fullscreen mode.

Sergey Radionov rsatom at gmail.com
Sun Jan 1 17:25:26 CET 2012


---
 common/win32_fullscreen.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp
index 28ff7ce..d629a64 100644
--- a/common/win32_fullscreen.cpp
+++ b/common/win32_fullscreen.cpp
@@ -845,15 +845,15 @@ void VLCWindowsManager::CreateWindows(HWND hWindowedParentWnd)
 
 void VLCWindowsManager::DestroyWindows()
 {
-    if(_FSWnd){
-        _FSWnd->DestroyWindow();
-    }
-    _FSWnd = 0;
-
     if(_HolderWnd){
         _HolderWnd->DestroyWindow();
     }
     _HolderWnd = 0;
+
+    if(_FSWnd){
+        _FSWnd->DestroyWindow();
+    }
+    _FSWnd = 0;
 }
 
 void VLCWindowsManager::LibVlcAttach(libvlc_media_player_t* p_md)
-- 
1.7.7.1.msysgit.0




More information about the vlc-devel mailing list