From: Pierre d'Herbemont Date: Sat, 18 Aug 2007 05:16:04 +0000 (+0000) Subject: playlist.m: Fix the so problematic 21193. X-Git-Tag: 0.9.0-test0~6424 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=566b63e7c7ad0570c36e226eabd6ea75ae0227e4;p=vlc playlist.m: Fix the so problematic 21193. --- diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index 85cff49418..beb3842ab6 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -272,11 +272,11 @@ { /* sanity check to prevent the NSString class from crashing */ char *psz_title = input_item_GetTitle( p_item->p_input ); - if( !EMPTY_STR( psz_title ) ) ) + if( !EMPTY_STR( psz_title ) ) { - o_value = [NSString stringWithUTF8String: psz_title )]; + o_value = [NSString stringWithUTF8String: psz_title]; if( o_value == NULL ) - o_value = [NSString stringWithCString: psz_title )]; + o_value = [NSString stringWithCString: psz_title]; } else { @@ -287,9 +287,9 @@ if( o_value == NULL ) o_value = [NSString stringWithCString: psz_name]; } + free( psz_name ); } free( psz_title ); - free( psz_name ); } else {