diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-03-31 11:05:50 +0100 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-03-31 11:08:33 +0100 |
commit | 3507a196e2f72a1693c24f03339260ba52d0e195 (patch) | |
tree | 66bd3428c02c67adebb0ccb67a3135ba58266685 | |
parent | 3db9f852cb1cef9fea984cc52bbe8b24a9903237 (diff) |
meta-porter: unref async result after calling a method on the source object
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r-- | wocky/wocky-meta-porter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wocky/wocky-meta-porter.c b/wocky/wocky-meta-porter.c index cd68354..f203772 100644 --- a/wocky/wocky-meta-porter.c +++ b/wocky/wocky-meta-porter.c @@ -1407,10 +1407,12 @@ meta_porter_send_iq_cb (GObject *source_object, g_simple_async_result_set_op_res_gpointer (simple, stanza, g_object_unref); g_simple_async_result_complete (simple); - g_object_unref (simple); wocky_meta_porter_unhold (data->self, data->contact); + /* unref simple here as we depend on it holding potentially the last + * ref on self */ + g_object_unref (data->simple); g_object_unref (data->contact); g_slice_free (SendIQData, data); } |