summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-05-27 12:07:49 -0400
committerDavid Zeuthen <davidz@redhat.com>2009-05-27 12:07:49 -0400
commita99d7f351a7c9a9414c7a76e511168b0b5cb49cb (patch)
tree3c5fb0c26c154c7305b4abfe3bb29a5d8c47531a
parent14592673338e48aa703a000ec32d52bbe921bd53 (diff)
take a ref to the GCancellable when sending messages0.4
-rw-r--r--src/eggdbus/eggdbusconnection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eggdbus/eggdbusconnection.c b/src/eggdbus/eggdbusconnection.c
index e36dc2c..51b22ec 100644
--- a/src/eggdbus/eggdbusconnection.c
+++ b/src/eggdbus/eggdbusconnection.c
@@ -2613,7 +2613,8 @@ egg_dbus_connection_send_message_with_reply (EggDBusConnection *connection
g_object_set_data (G_OBJECT (simple), "dbus-1-pending-call", pending_call);
g_object_set_data (G_OBJECT (simple), "egg-dbus-pending-call-id", GUINT_TO_POINTER (pending_call_id));
g_object_set_data (G_OBJECT (simple), "egg-dbus-call-flags", GUINT_TO_POINTER (call_flags));
- g_object_set_data (G_OBJECT (simple), "egg-dbus-cancellable", cancellable);
+ if (cancellable != NULL)
+ g_object_set_data_full (G_OBJECT (simple), "egg-dbus-cancellable", g_object_ref (cancellable), g_object_unref);
g_object_set_data_full (G_OBJECT (simple), "egg-dbus-error-types", error_types_copy, (GDestroyNotify) g_free);
g_hash_table_insert (priv->hash_pending_call_id_to_async_result,