[vlc-commits] Qt: fix memory leak

Hannes Domani git at videolan.org
Thu Aug 27 18:49:59 CEST 2015


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Thu Aug 27 16:18:24 2015 +0200| [5a04c819b287918876c1b9f0f68753003ed8faa1] | committer: Jean-Baptiste Kempf

Qt: fix memory leak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a04c819b287918876c1b9f0f68753003ed8faa1
---

 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;



More information about the vlc-commits mailing list