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
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2000-08-07 Dan Winship <danw@helixcode.com>
|
||||
|
||||
* camel-folder.c (camel_folder_free_deep): Fix this to not require
|
||||
NULL-termination of the array.
|
||||
|
||||
2000-08-04 Jeffrey Stedfast <fejj@helixcode.com>
|
||||
|
||||
* providers/imap/camel-imap-store.c (imap_connect): If we fail to
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user