From d4c7ef27dd409c192fcfec571921bd7f892eb5af Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Wed, 21 Jul 2010 21:49:37 +0200 Subject: [PATCH] Qt4: fix memleak when album arts. --- modules/gui/qt4/input_manager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp index f7f3bfa845..ebcc032612 100644 --- a/modules/gui/qt4/input_manager.cpp +++ b/modules/gui/qt4/input_manager.cpp @@ -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() -- 2.39.2