[vlc-commits] Qt: ExtensionCopy: fix memleak

Francois Cartegnie git at videolan.org
Sun Jun 23 14:05:00 CEST 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jun 23 13:33:01 2013 +0200| [804c64f3e99e8740f007a1d9cf339d90bc071fe8] | committer: Francois Cartegnie

Qt: ExtensionCopy: fix memleak

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

 modules/gui/qt4/dialogs/plugins.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/dialogs/plugins.cpp b/modules/gui/qt4/dialogs/plugins.cpp
index e23c019..20a6763 100644
--- a/modules/gui/qt4/dialogs/plugins.cpp
+++ b/modules/gui/qt4/dialogs/plugins.cpp
@@ -307,7 +307,7 @@ public:
         url = qfu( p_ext->psz_url );
         icon = loadPixmapFromData( p_ext->p_icondata, p_ext->i_icondata_size );
     }
-    ~ExtensionCopy() {}
+    ~ExtensionCopy() { delete icon; }
 
     QString name, title, description, shortdesc, author, version, url;
     QPixmap *icon;



More information about the vlc-commits mailing list