[vlc-commits] Qt: release vout in controller configuration widget

Mario Speiß git at videolan.org
Wed Jun 20 15:12:34 CEST 2012


vlc | branch: master | Mario Speiß <1034-135 at online.de> | Wed Jun 13 21:59:00 2012 +0200| [4d844df2e475cd0d8df9d21885f8280df818b86e] | committer: Jean-Baptiste Kempf

Qt: release vout in controller configuration widget

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

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

 modules/gui/qt4/components/controller_widget.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp
index b02ec41..7f973c0 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -298,7 +298,8 @@ void AspectRatioComboBox::updateAspectRatio( int x )
     if( p_vout && x >= 0 )
     {
         var_SetString( p_vout, "aspect-ratio", qtu( itemData(x).toString() ) );
-        vlc_object_release( p_vout );
     }
+    if( p_vout )
+        vlc_object_release( p_vout );
 }
 



More information about the vlc-commits mailing list