Commit f6162024 authored by Rémi Duraffort's avatar Rémi Duraffort

Qt4: fix memleak when album arts.

(cherry picked from commit d4c7ef27)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent a67f4057
...@@ -641,7 +641,10 @@ const QString InputManager::decodeArtURL( input_item_t *p_item ) ...@@ -641,7 +641,10 @@ const QString InputManager::decodeArtURL( input_item_t *p_item )
/* Taglib seems to define a attachment://, It won't work yet */ /* Taglib seems to define a attachment://, It won't work yet */
url = url.replace( "attachment://", "" ); url = url.replace( "attachment://", "" );
#endif #endif
return qfu( psz_art ? psz_art : "" );
QString path = qfu( psz_art ? psz_art : "" );
free( psz_art );
return path;
} }
void InputManager::UpdateArt() void InputManager::UpdateArt()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment