From de587c237065de4696d9d035d0504cdf34990d87 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sat, 2 Aug 2008 15:59:41 +0200 Subject: [PATCH] macosx: Fix a memleak. (ivoire, I guess there are potentially a lot of interaction related memleak). --- modules/gui/macosx/playlist.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; } -- 2.39.2