[Telepathy-commits] [telepathy-gabble/master] GabbleJingleFactory: unref the map after passing it to the callback

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Mar 3 09:40:05 PST 2009


If the callback wants it, it can ref it.
---
 src/jingle-factory.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/jingle-factory.c b/src/jingle-factory.c
index 180d02f..df0665d 100644
--- a/src/jingle-factory.c
+++ b/src/jingle-factory.c
@@ -935,6 +935,7 @@ on_http_response (SoupSession *soup,
         }
 
       rsd->callback (map, rsd->user_data);
+      g_hash_table_unref (map);
       g_strfreev (lines);
     }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list