summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-10-07 19:53:45 +0200
committerBastien Nocera <hadess@hadess.net>2016-10-10 16:32:43 +0200
commit12d64a1cf190135fe73ccd9b6078460b2a1ff0a5 (patch)
tree6a740ef63e7f608bf4ba668b931d3f6308e52d29
parent2c54c00d1e70b7ec4b60bbf4d961d68bca6da7b2 (diff)
downloadgnome-settings-daemon-12d64a1cf190135fe73ccd9b6078460b2a1ff0a5.tar.gz
sharing: Fix crash on exit
When finalising the sharing manager, we destroyed the services hashtable, but service_free() passed NULL as the manager, making it impossible to really stop the service. As _stop() was already called, we shouldn't need to stop the service, or crash. https://bugzilla.gnome.org/show_bug.cgi?id=772587
-rw-r--r--plugins/sharing/gsd-sharing-manager.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/sharing/gsd-sharing-manager.c b/plugins/sharing/gsd-sharing-manager.c
index 13e09b5f..c8a81823 100644
--- a/plugins/sharing/gsd-sharing-manager.c
+++ b/plugins/sharing/gsd-sharing-manager.c
@@ -757,7 +757,6 @@ service_free (gpointer pointer)
ServiceInfo *service = pointer;
g_clear_object (&service->settings);
- gsd_sharing_manager_stop_service (NULL, service);
g_free (service);
}