[vlc-devel] [PATCH 4/6] Qt: fix memory leak

Hannes Domani ssbssa at yahoo.de
Thu Aug 27 16:18:24 CEST 2015


---
 modules/gui/qt4/components/preferences_widgets.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index c3a9c54..6d72387 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -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;
-- 
2.5.0



More information about the vlc-devel mailing list