X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fplaylist.m;h=5e01eda7cbdf8c4d0308eb18b3a357497de148ad;hb=de587c237065de4696d9d035d0504cdf34990d87;hp=7598e4cc4a36579611f7fa9b3df2855ff68677ec;hpb=d253749f68a85d8c720e66e4a0f7ad9693ba84e3;p=vlc 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]; }