Skip to content

Commit

Permalink
Qt: fix memory leak
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 Aug 27, 2015
1 parent 97020e0 commit 5a04c81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/gui/qt4/components/preferences_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,8 @@ void ModuleListConfigControl::fillGrid( QGridLayout *l, int line )

ModuleListConfigControl::~ModuleListConfigControl()
{
foreach ( checkBoxListItem *it, modules )
free( it->psz_module );
qDeleteAll( modules );
modules.clear();
delete groupBox;
Expand Down

0 comments on commit 5a04c81

Please sign in to comment.