summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgjs-private/gjs-gdbus-wrapper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgjs-private/gjs-gdbus-wrapper.c b/libgjs-private/gjs-gdbus-wrapper.c
index f7361366..eb0516f9 100644
--- a/libgjs-private/gjs-gdbus-wrapper.c
+++ b/libgjs-private/gjs-gdbus-wrapper.c
@@ -395,7 +395,9 @@ gjs_dbus_implementation_emit_signal (GjsDBusImplementation *self,
g_object_unref(iter->data);
}
- g_variant_unref(parameters);
+ if (parameters != NULL)
+ g_variant_unref(parameters);
+
g_list_free(connections);
}