[vlc-commits] Qt: fix memory leaks
Hannes Domani
git at videolan.org
Mon Jul 6 17:54:22 CEST 2015
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Fri Jul 3 13:09:02 2015 +0200| [27d4490a231f6260be2a5084cb04fa7ac403909c] | committer: Jean-Baptiste Kempf
Qt: fix memory leaks
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=27d4490a231f6260be2a5084cb04fa7ac403909c
---
modules/gui/qt4/components/simple_preferences.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index e220663..1728f76 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -1009,6 +1009,7 @@ void SPrefsPanel::updateAudioOptions( int number)
SPrefsPanel::~SPrefsPanel()
{
qDeleteAll( controls ); controls.clear();
+ free( lang );
}
void SPrefsPanel::updateAudioVolume( int volume )
@@ -1182,6 +1183,7 @@ void SPrefsPanel::changeStyle( QString s_style )
void SPrefsPanel::langChanged( int i )
{
+ free( lang );
lang = strdup( ppsz_language[i] );
}
More information about the vlc-commits
mailing list