[vlc-devel] commit: Qt: Fix Segfault when exiting on Windows 2000 (Michael McEll )

git version control git at videolan.org
Mon Jan 25 01:28:05 CET 2010


vlc | branch: master | Michael McEll <mapei_ at hotmail.com> | Mon Jan 25 01:20:08 2010 +0100| [f63e51271320160bf9368c53097d36cd1c98d664] | committer: Jean-Baptiste Kempf 

Qt: Fix Segfault when exiting on Windows 2000

Initialize two handles even if createTaskBarButtons() is not called.
Otherwise vlc.exe will segfault at exit

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/main_interface.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 763d760..8f18735 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -169,6 +169,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     MainInputManager::getInstance( p_intf );
 
 #ifdef WIN32
+    himl = NULL;
+    p_taskbl = NULL;
     taskbar_wmsg = RegisterWindowMessage("TaskbarButtonCreated");
 #endif
 




More information about the vlc-devel mailing list