[vlc-commits] commit: Qt4: fix memleak when album arts. ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Mon Jul 26 19:49:14 CEST 2010
vlc/vlc-1.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Jul 21 21:49:37 2010 +0200| [f61620244e4bab2e3c1cfcb3b4e489d8288f2c84] | committer: Rémi Duraffort
Qt4: fix memleak when album arts.
(cherry picked from commit d4c7ef27dd409c192fcfec571921bd7f892eb5af)
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=f61620244e4bab2e3c1cfcb3b4e489d8288f2c84
---
modules/gui/qt4/input_manager.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 70cf7bb..669a9db 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -641,7 +641,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()
More information about the vlc-commits
mailing list