Commit 566b63e7 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist.m: Fix the so problematic 21193.

parent 9ab9c6f5
...@@ -272,11 +272,11 @@ ...@@ -272,11 +272,11 @@
{ {
/* sanity check to prevent the NSString class from crashing */ /* sanity check to prevent the NSString class from crashing */
char *psz_title = input_item_GetTitle( p_item->p_input ); 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 ) if( o_value == NULL )
o_value = [NSString stringWithCString: psz_title )]; o_value = [NSString stringWithCString: psz_title];
} }
else else
{ {
...@@ -287,9 +287,9 @@ ...@@ -287,9 +287,9 @@
if( o_value == NULL ) if( o_value == NULL )
o_value = [NSString stringWithCString: psz_name]; o_value = [NSString stringWithCString: psz_name];
} }
free( psz_name );
} }
free( psz_title ); free( psz_title );
free( psz_name );
} }
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment