]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.cpp
Use vlc_mutex_locker
[vlc] / modules / gui / qt4 / qt4.cpp
index de5d7964b115b27dd93c12c94b968224b275b858..1a2b51c35550efc5e3252380884d32d41d17c613 100644 (file)
@@ -407,9 +407,9 @@ static void Close( vlc_object_t *p_this )
     x11_display = NULL;
 #endif
     delete p_sys;
-    vlc_mutex_lock (&one.lock);
+
+    vlc_mutex_locker locker (&one.lock);
     one.busy = false;
-    vlc_mutex_unlock (&one.lock);
 }
 
 static void *Thread( void *obj )