[vlc-devel] [PATCH 1/2] Qt: release vout in controller configuration widget
Mario Speiß
1034-135 at online.de
Wed Jun 13 21:59:00 CEST 2012
---
modules/gui/qt4/components/controller_widget.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
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 );
}
--
1.7.5.4
More information about the vlc-devel
mailing list