[Telepathy-commits] [telepathy-gabble/master] olpc_buddy_info_set_activities: fix ID leaks

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:53 PDT 2008


20080729154740-7fe3f-6652cd3e07b904ee39815a67bab774337303ed84.gz
---
 src/conn-olpc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/conn-olpc.c b/src/conn-olpc.c
index c544b30..2e43a6a 100644
--- a/src/conn-olpc.c
+++ b/src/conn-olpc.c
@@ -1255,6 +1255,7 @@ olpc_buddy_info_set_activities (GabbleSvcOLPCBuddyInfo *iface,
               tp_handle_set_destroy (activities_set);
               g_error_free (error);
               g_free (activity);
+              g_free (id);
               return;
             }
 
@@ -1266,6 +1267,7 @@ olpc_buddy_info_set_activities (GabbleSvcOLPCBuddyInfo *iface,
         }
 
       g_object_set (activity, "id", id, NULL);
+      g_free (id);
 
       tp_handle_set_add (activities_set, channel);
     }
-- 
1.5.6.5




More information about the Telepathy-commits mailing list