diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-03-31 09:27:38 +0100 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-03-31 11:08:07 +0100 |
commit | 9c4b6aaabcd57a48c8ae7c2e734e419336347c61 (patch) | |
tree | d29817bd7766407964ba9ce4c3cd7ed962bbfe79 | |
parent | dcfc45feb4373968989fd3e1cd9ffe3d0d5786da (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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wocky/wocky-meta-porter.c b/wocky/wocky-meta-porter.c index 45061c5..143a5c6 100644 --- a/wocky/wocky-meta-porter.c +++ b/wocky/wocky-meta-porter.c @@ -1405,8 +1405,11 @@ meta_porter_send_iq_got_porter_cb (WockyMetaPorter *self, g_simple_async_result_set_from_error (simple, error); g_simple_async_result_complete (simple); - g_object_unref (simple); wocky_meta_porter_unhold (self, contact); + + /* unref simple here as we depend on it potentially holding the + * last ref to self */ + g_object_unref (simple); } else { |