From 566b63e7c7ad0570c36e226eabd6ea75ae0227e4 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sat, 18 Aug 2007 05:16:04 +0000 Subject: [PATCH] playlist.m: Fix the so problematic 21193. --- modules/gui/macosx/playlist.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 { -- 2.39.2