From 7507049677411547eed506ea76eb33539cb414e5 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Sat, 10 May 2014 18:32:18 +0200 Subject: Prevent critical if there's no system bus Found by Juan A. Suarez Romero Signed-off-by: Jens Georg https://bugzilla.gnome.org/show_bug.cgi?id=727709 --- libgupnp/gupnp-context-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgupnp/gupnp-context-manager.c b/libgupnp/gupnp-context-manager.c index e766e93..31b711b 100644 --- a/libgupnp/gupnp-context-manager.c +++ b/libgupnp/gupnp-context-manager.c @@ -587,7 +587,7 @@ gupnp_context_manager_create (guint port) NULL)); #if defined(USE_NETWORK_MANAGER) || defined(USE_CONNMAN) - g_object_unref (system_bus); + g_clear_object (&system_bus); #endif return impl; } -- cgit v1.2.1