summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2014-05-10 18:32:18 +0200
committerJens Georg <mail@jensge.org>2014-05-10 18:35:13 +0200
commit7507049677411547eed506ea76eb33539cb414e5 (patch)
tree257486ca488cdaee935fe10b29b0722efe6597fe
parent82052b17607c20bc99ba32997eb4590c5f92b065 (diff)
downloadgupnp-7507049677411547eed506ea76eb33539cb414e5.tar.gz
Prevent critical if there's no system bus
Found by Juan A. Suarez Romero <jasuarez@igalia.com> Signed-off-by: Jens Georg <mail@jensge.org> https://bugzilla.gnome.org/show_bug.cgi?id=727709
-rw-r--r--libgupnp/gupnp-context-manager.c2
1 files changed, 1 insertions, 1 deletions
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;
}