[gnome-settings-daemon] sharing: Fix crash on exit
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] sharing: Fix crash on exit
- Date: Mon, 10 Oct 2016 14:26:34 +0000 (UTC)
commit 90cd5a0d7c30d95c532253c1936ac6a318139fa6
Author: Bastien Nocera <hadess hadess net>
Date: Fri Oct 7 19:53:45 2016 +0200
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
plugins/sharing/gsd-sharing-manager.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/plugins/sharing/gsd-sharing-manager.c b/plugins/sharing/gsd-sharing-manager.c
index 8ad25f4..cd637c4 100644
--- a/plugins/sharing/gsd-sharing-manager.c
+++ b/plugins/sharing/gsd-sharing-manager.c
@@ -758,7 +758,6 @@ service_free (gpointer pointer)
ServiceInfo *service = pointer;
g_clear_object (&service->settings);
- gsd_sharing_manager_stop_service (NULL, service);
g_free (service);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]