]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/input_manager.cpp
Qt4: fix memleak when album arts.
[vlc] / 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()