[vlc-commits] commit: qt4: clear extensions list when the dialog is destroyed. ( Rémi Duraffort )

git at videolan.org git at videolan.org
Thu Apr 29 18:22:28 CEST 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Apr 29 18:08:48 2010 +0200| [bf294d3d3818acd8a8e9ba7d33afcd9c251f1c21] | committer: Rémi Duraffort 

qt4: clear extensions list when the dialog is destroyed.

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

 modules/gui/qt4/dialogs/plugins.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/dialogs/plugins.cpp b/modules/gui/qt4/dialogs/plugins.cpp
index fb34d44..5199c95 100644
--- a/modules/gui/qt4/dialogs/plugins.cpp
+++ b/modules/gui/qt4/dialogs/plugins.cpp
@@ -292,6 +292,9 @@ ExtensionListModel::ExtensionListModel( QListView *view, intf_thread_t *intf )
 
 ExtensionListModel::~ExtensionListModel()
 {
+    // Clear extensions list
+    while( !extensions.isEmpty() )
+        delete extensions.takeLast();
 }
 
 void ExtensionListModel::updateList()



More information about the vlc-commits mailing list