From 3179eb7162b3f9eb4c81abc76e186bba79aa5a67 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 7 Aug 2000 04:16:26 +0000 Subject: Fix this to not require NULL-termination of the array. * camel-folder.c (camel_folder_free_deep): Fix this to not require NULL-termination of the array. svn path=/trunk/; revision=4560 --- camel/ChangeLog | 5 +++++ camel/camel-folder.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 27a5d22262..ef9aebeb76 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-08-07 Dan Winship + + * camel-folder.c (camel_folder_free_deep): Fix this to not require + NULL-termination of the array. + 2000-08-04 Jeffrey Stedfast * providers/imap/camel-imap-store.c (imap_connect): If we fail to 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); } -- cgit