Only delete the index if it is non-NULL. Fixes bug #42763.

2003-05-13  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/local/camel-local-folder.c (local_delete): Only delete
	the index if it is non-NULL. Fixes bug #42763.

svn path=/trunk/; revision=21193
This commit is contained in:
Jeffrey Stedfast
2003-05-15 18:05:14 +00:00
committed by Jeffrey Stedfast
parent ee8e8b6bae
commit 1e478fe94b
2 changed files with 8 additions and 2 deletions

View File

@ -7,6 +7,11 @@
Also, for a valid return against result, not herr.
(camel_gethostbyaddr): Likewise.
2003-05-13 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-local-folder.c (local_delete): Only delete
the index if it is non-NULL. Fixes bug #42763.
2003-05-13 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-utils.c (imap_uid_array_to_set): Added

View File

@ -442,8 +442,9 @@ static void
local_delete(CamelFolder *folder)
{
CamelLocalFolder *lf = (CamelLocalFolder *)folder;
camel_index_delete(lf->index);
if (lf->index)
camel_index_delete(lf->index);
parent_class->delete(folder);
}