[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:26:22 CEST 2010
vlc/vlc-1.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Apr 29 18:08:48 2010 +0200| [7650974e9aaf9f3644d5cb30bf8dceb8e1dc66c1] | committer: Rémi Duraffort
qt4: clear extensions list when the dialog is destroyed.
(cherry picked from commit bf294d3d3818acd8a8e9ba7d33afcd9c251f1c21)
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=7650974e9aaf9f3644d5cb30bf8dceb8e1dc66c1
---
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