]> git.sesse.net Git - vlc/commitdiff
Qt4: fix memleak when album arts.
authorRémi Duraffort <ivoire@videolan.org>
Wed, 21 Jul 2010 19:49:37 +0000 (21:49 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 21 Jul 2010 20:04:56 +0000 (23:04 +0300)
modules/gui/qt4/input_manager.cpp

index f7f3bfa84552a7b0d781df59758fbb3c86ec05fe..ebcc032612391b0ac1282d2e62601586af2f0221 100644 (file)
@@ -643,7 +643,10 @@ const QString InputManager::decodeArtURL( input_item_t *p_item )
     /* Taglib seems to define a attachment://, It won't work yet */
     url = url.replace( "attachment://", "" );
 #endif
-    return qfu( psz_art ? psz_art : "" );
+
+    QString path = qfu( psz_art ? psz_art : "" );
+    free( psz_art );
+    return path;
 }
 
 void InputManager::UpdateArt()