[vlc-commits] Qt: fix leak
Rémi Denis-Courmont
git at videolan.org
Mon Apr 22 18:23:04 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 22 19:22:57 2013 +0300| [960a19c6ed114647ef8095dc5fc41dc8a17bde1f] | committer: Rémi Denis-Courmont
Qt: fix leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=960a19c6ed114647ef8095dc5fc41dc8a17bde1f
---
modules/gui/qt4/input_manager.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index a078ee7..86176b7 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -1228,7 +1228,12 @@ void MainInputManager::notifyMute( bool mute )
void MainInputManager::menusUpdateAudio( const QString& data )
{
- aout_DeviceSet( getAout(), qtu(data) );
+ audio_output_t *aout = getAout();
+ if( aout != NULL )
+ {
+ aout_DeviceSet( aout, qtu(data) );
+ vlc_object_release( aout );
+ }
}
static int PLItemAppended
More information about the vlc-commits
mailing list