[Telepathy-commits] [telepathy-glib/master] Don't forget to free strings returned by tp_connection_parse_object_path

Xavier Claessens xclaesse at gmail.com
Fri Feb 20 07:00:11 PST 2009


---
 tests/dbus/connection.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/dbus/connection.c b/tests/dbus/connection.c
index 9f5a622..d04bba2 100644
--- a/tests/dbus/connection.c
+++ b/tests/dbus/connection.c
@@ -98,6 +98,8 @@ conn_ready (TpConnection *connection,
       MYASSERT (parsed ==  TRUE, "");
       MYASSERT_SAME_STRING (proto, "simple-protocol");
       MYASSERT_SAME_STRING (cm_name, "simple");
+      g_free (proto);
+      g_free (cm_name);
     }
   else
     {
-- 
1.5.6.5




More information about the telepathy-commits mailing list