From: RĂ©mi Duraffort Date: Mon, 3 Mar 2008 10:46:55 +0000 (+0100) Subject: Check the return value of services_discovery_GetServicesNames. X-Git-Tag: 0.9.0-test0~2358 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9c1a53ac71e4edb312b5fe7123163aa223a55c20;p=vlc Check the return value of services_discovery_GetServicesNames. If mac users can test ... (evenif it's really simple) --- diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index 0250ea41ab..ae095c962a 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -382,6 +382,11 @@ char ** ppsz_name; char ** ppsz_services = services_discovery_GetServicesNames( p_playlist, &ppsz_name ); + if( !ppsz_services ) + { + vlc_object_release( p_playlist ); + return; + } for( i = 0; ppsz_services[i]; i++ ) {