From 9c1a53ac71e4edb312b5fe7123163aa223a55c20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Mon, 3 Mar 2008 11:46:55 +0100 Subject: [PATCH] Check the return value of services_discovery_GetServicesNames. If mac users can test ... (evenif it's really simple) --- modules/gui/macosx/playlist.m | 5 +++++ 1 file changed, 5 insertions(+) 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++ ) { -- 2.39.2