[gnome-settings-daemon/gnome-3-22] sharing: Fix crash on exit



commit 28723a8de4f6ba5c5c6e8856ae766bac23a3b6d6
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]