[vlmc-devel] Settings: Fix memory leak

Hugo Beauzée-Luyssen git at videolan.org
Mon Mar 28 18:03:57 CEST 2016


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Mar 28 18:03:25 2016 +0200| [a3d689fec0543a2482c3a4a743934e5dc76b9321] | committer: Hugo Beauzée-Luyssen

Settings: Fix memory leak

> https://code.videolan.org/videolan/vlmc/commit/a3d689fec0543a2482c3a4a743934e5dc76b9321
---

 src/Settings/Settings.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/Settings/Settings.cpp b/src/Settings/Settings.cpp
index 973e89a..c8ff430 100644
--- a/src/Settings/Settings.cpp
+++ b/src/Settings/Settings.cpp
@@ -44,6 +44,7 @@ Settings::Settings(const QString &settingsFile)
 
 Settings::~Settings()
 {
+    qDeleteAll( m_settings );
     delete m_settingsFile;
 }
 



More information about the Vlmc-devel mailing list