soc.2009.telepathy: eb94b9c8: Fixed memory leak

sttwister at soc.pidgin.im sttwister at soc.pidgin.im
Thu Jun 25 18:15:51 EDT 2009


-----------------------------------------------------------------
Revision: eb94b9c86c2d90a79a4083bf6685def4f54cd247
Ancestor: 2f10c89d4076b17302f5f6adf84411b61364b753
Author: sttwister at soc.pidgin.im
Date: 2009-06-25T21:36:01
Branch: im.pidgin.soc.2009.telepathy
URL: http://d.pidgin.im/viewmtn/revision/info/eb94b9c86c2d90a79a4083bf6685def4f54cd247

Modified files:
        libpurple/protocols/telepathy/telepathy.c

ChangeLog: 

Fixed memory leak

-------------- next part --------------
============================================================
--- libpurple/protocols/telepathy/telepathy.c	0e0224f641763433fe1815fc7f4394f9680a2309
+++ libpurple/protocols/telepathy/telepathy.c	07faa1062322794c4aac159c7c3a6656b85c1dfd
@@ -484,14 +484,10 @@ telepathy_add_buddy (PurpleConnection *g
 	}
 	else
 	{
-		GPtrArray *arr = g_ptr_array_sized_new(2);
+		gchar const *ids[] = { buddy_name, NULL };
 
-		g_ptr_array_add(arr, (gchar *)buddy_name);
-		g_ptr_array_add(arr, NULL);
-
 		tp_connection_request_handles(connection_data->connection, -1,
-				TP_HANDLE_TYPE_CONTACT,
-				(const char * const *)arr->pdata,
+				TP_HANDLE_TYPE_CONTACT, ids,
 				add_contact_to_group_cb, tp_group,
 				NULL, NULL);
 	}


More information about the Commits mailing list