vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Mon Nov 26 
23:20:28 2012 +0200| [a038c1b41dabc7c1a2cdb2ac39918566357ff0ed] | committer: 
Rémi Denis-Courmont

Qt4: deactivate the playlist before exit

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

 modules/gui/qt4/qt4.cpp |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 377d105..efd0827 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -418,8 +418,11 @@ static void Close( vlc_object_t *p_this )
 
     if( !p_sys->b_isDialogProvider )
     {
-        var_Destroy (pl_Get(p_this), "window");
-        var_Destroy (pl_Get(p_this), "qt4-iface");
+        playlist_t *pl = pl_Get(p_this);
+
+        var_Destroy (pl, "window");
+        var_Destroy (pl, "qt4-iface");
+        playlist_Deactivate (pl); /* release window provider if needed */
     }
 
     /* And quit */

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to