[vlc-devel] commit: qt4: destroy the variable only if the variable does exist. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Nov 13 21:18:32 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Nov 13 21:10:24 2009 +0100| [5e2ff900839de70606f212328accd22a45b74982] | committer: Rémi Duraffort
qt4: destroy the variable only if the variable does exist.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e2ff900839de70606f212328accd22a45b74982
---
modules/gui/qt4/qt4.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 92be217..a899a0d 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -334,7 +334,9 @@ static void Close( vlc_object_t *p_this )
intf_thread_t *p_intf = (intf_thread_t *)p_this;
intf_sys_t *p_sys = p_intf->p_sys;
- var_Destroy (p_this->p_libvlc, "qt4-iface");
+ if( !p_sys->b_isDialogProvider )
+ var_Destroy (p_this->p_libvlc, "qt4-iface");
+
QVLCApp::triggerQuit();
vlc_join (p_sys->thread, NULL);
More information about the vlc-devel
mailing list