service: Fix service_send_changed abort signal while cleaning up
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 17 Apr 2012 08:18:02 +0000 (11:18 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 17 Apr 2012 10:37:47 +0000 (13:37 +0300)
src/service.c

index b3644b0..fd1340e 100644 (file)
@@ -3646,7 +3646,9 @@ static void service_append_added_foreach(gpointer data, gpointer user_data)
 
 static void service_append_ordered(DBusMessageIter *iter, void *user_data)
 {
-       g_sequence_foreach(service_list, service_append_added_foreach, iter);
+       if (service_list != NULL)
+               g_sequence_foreach(service_list,
+                                       service_append_added_foreach, iter);
 }
 
 static void append_removed(gpointer key, gpointer value, gpointer user_data)