[vlc-devel] commit: Fix memleak in Qt interface. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Sep 5 21:20:01 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Sep 5 21:23:03 2008 +0200| [b8b83532f0cf168caf84ad2606d5ed6c6fedcd2d] | committer: Rémi Duraffort
Fix memleak in Qt interface.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b8b83532f0cf168caf84ad2606d5ed6c6fedcd2d
---
modules/gui/qt4/components/info_panels.cpp | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/info_panels.cpp b/modules/gui/qt4/components/info_panels.cpp
index 5d46965..da90cab 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -193,10 +193,7 @@ void MetaPanel::update( input_item_t *p_item )
/* URL / URI */
psz_meta = input_item_GetURL( p_item );
if( !EMPTY_STR( psz_meta ) )
- {
emit uriSet( QString( psz_meta ) );
- free( psz_meta );
- }
else
{
free( psz_meta );
@@ -204,6 +201,7 @@ void MetaPanel::update( input_item_t *p_item )
if( !EMPTY_STR( psz_meta ) )
emit uriSet( QString( psz_meta ) );
}
+ free( psz_meta );
/* Other classic though */
UPDATE_META( Artist, artist_text );
More information about the vlc-devel
mailing list