aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r--camel/camel-folder.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index caac803ce8..047c814e5e 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -1241,6 +1241,9 @@ camel_folder_free_shallow (CamelFolder *folder, GPtrArray *array)
void
camel_folder_free_deep (CamelFolder *folder, GPtrArray *array)
{
- g_strfreev ((gchar **)array->pdata);
- g_ptr_array_free (array, FALSE);
+ int i;
+
+ for (i = 0; i < array->len; i++)
+ g_free (array->pdata[i]);
+ g_ptr_array_free (array, TRUE);
}