[telepathy-gabble/master] caps-hash.c: don't leak the fields and values arrays
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu Jul 23 09:18:59 PDT 2009
---
src/caps-hash.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/caps-hash.c b/src/caps-hash.c
index b99c59b..c51fa03 100644
--- a/src/caps-hash.c
+++ b/src/caps-hash.c
@@ -90,6 +90,7 @@ _free_field (gpointer data, gpointer user_data)
g_free (field->field_name);
g_ptr_array_foreach (field->values, (GFunc) g_free, NULL);
+ g_ptr_array_free (field->values, TRUE);
g_slice_free (DataFormField, field);
}
@@ -102,6 +103,7 @@ _free_form (gpointer data, gpointer user_data)
g_free (form->form_type);
g_ptr_array_foreach (form->fields, _free_field, NULL);
+ g_ptr_array_free (form->fields, TRUE);
g_slice_free (DataForm, form);
}
--
1.5.6.5
More information about the telepathy-commits
mailing list