diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-02-29 13:12:47 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-02-29 13:14:01 +0000 |
commit | cdc02ea04db52b24d84be250893b3bdc750baafe (patch) | |
tree | 5a1d9e9c2a446f4a37c201787ba1dc7043adf3b4 /src | |
parent | a6ef0c0b9d2747baaaa049a6c441da7b94d65265 (diff) | |
download | telepathy-gabble-cdc02ea04db52b24d84be250893b3bdc750baafe.tar.gz |
JingleSession: don't leak in initiate/accept callbacks
Simon noticed:
> "Send session-{initiate,accept} IQs using porter directly.",
> 72ea73343252: I think you're leaking sess in the callbacks, except in
> the early-return cases where the state has become inappropriate?
He's quite right.
Diffstat (limited to 'src')
-rw-r--r-- | src/jingle-session.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jingle-session.c b/src/jingle-session.c index 2e169346f..0d2e016cc 100644 --- a/src/jingle-session.c +++ b/src/jingle-session.c @@ -1892,6 +1892,7 @@ _on_initiate_reply ( } g_clear_object (&reply); + g_object_unref (sess); } static void @@ -1927,6 +1928,7 @@ _on_accept_reply ( } g_clear_object (&reply); + g_object_unref (sess); } static void |