Skip to content

Commit

Permalink
Qt: fix memory leaks
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Baptiste Kempf <[email protected]>
  • Loading branch information
ssbssa authored and jbkempf committed Jul 6, 2015
1 parent e08b54d commit 27d4490
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/gui/qt4/components/simple_preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ void SPrefsPanel::updateAudioOptions( int number)
SPrefsPanel::~SPrefsPanel()
{
qDeleteAll( controls ); controls.clear();
free( lang );
}

void SPrefsPanel::updateAudioVolume( int volume )
Expand Down Expand Up @@ -1182,6 +1183,7 @@ void SPrefsPanel::changeStyle( QString s_style )

void SPrefsPanel::langChanged( int i )
{
free( lang );
lang = strdup( ppsz_language[i] );
}

Expand Down

0 comments on commit 27d4490

Please sign in to comment.