Commit 27d4490a authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

Qt: fix memory leaks

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e08b54d6
...@@ -1009,6 +1009,7 @@ void SPrefsPanel::updateAudioOptions( int number) ...@@ -1009,6 +1009,7 @@ void SPrefsPanel::updateAudioOptions( int number)
SPrefsPanel::~SPrefsPanel() SPrefsPanel::~SPrefsPanel()
{ {
qDeleteAll( controls ); controls.clear(); qDeleteAll( controls ); controls.clear();
free( lang );
} }
void SPrefsPanel::updateAudioVolume( int volume ) void SPrefsPanel::updateAudioVolume( int volume )
...@@ -1182,6 +1183,7 @@ void SPrefsPanel::changeStyle( QString s_style ) ...@@ -1182,6 +1183,7 @@ void SPrefsPanel::changeStyle( QString s_style )
void SPrefsPanel::langChanged( int i ) void SPrefsPanel::langChanged( int i )
{ {
free( lang );
lang = strdup( ppsz_language[i] ); lang = strdup( ppsz_language[i] );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment