]> git.sesse.net Git - vlc/blobdiff - modules/services_discovery/hal.c
svg module: fix memleak.
[vlc] / modules / services_discovery / hal.c
index a6837d51e91ea13994a261fd24fbc5d83189dc44..fbc3ea65ec868593583ce09d126c971d2b5aa258 100644 (file)
@@ -310,7 +310,7 @@ static void Run( services_discovery_t *p_sd )
             libhal_free_string( devices[ i ] );
         }
     }
-    while( !p_sd->b_die )
+    while( vlc_object_alive (p_sd) )
     {
         /* look for events on the bus, blocking 1 second */
         dbus_connection_read_write_dispatch( p_sys->p_connection, 1000 );