From: Pierre d'Herbemont Date: Sat, 2 Aug 2008 13:59:41 +0000 (+0200) Subject: macosx: Fix a memleak. X-Git-Tag: 0.9.0-test3~2 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=de587c237065de4696d9d035d0504cdf34990d87 macosx: Fix a memleak. (ivoire, I guess there are potentially a lot of interaction related memleak). --- diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index 7598e4cc4a..5e01eda7cb 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -1354,7 +1354,7 @@ _("Please enter a name for the new node."), &psz_name ); PL_LOCK; - if( ret_v != DIALOG_CANCELLED && psz_name && *psz_name ) + if( ret_v != DIALOG_CANCELLED && psz_name ) { playlist_NodeCreate( p_playlist, psz_name, p_playlist->p_local_category, 0, NULL ); @@ -1367,6 +1367,7 @@ } PL_UNLOCK; + free( psz_name ); pl_Release( VLCIntf ); [ourPool release]; }