[vlc-commits] Qt: fix memory leak

Hannes Domani git at videolan.org
Wed Oct 21 18:55:45 CEST 2015


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

Qt: fix memory leak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 5a04c819b287918876c1b9f0f68753003ed8faa1)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=03a2fd67c15a8a5c5e1686752a298416f7e32d37
---

 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 8da328c..6cfb4bd 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