From 1e478fe94bc167e450e494f0b8b3efa7ffef4998 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 15 May 2003 18:05:14 +0000 Subject: Only delete the index if it is non-NULL. Fixes bug #42763. 2003-05-13 Jeffrey Stedfast * 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 --- camel/ChangeLog | 5 +++++ camel/providers/local/camel-local-folder.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index c24472738a..75ad88d4ff 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -7,6 +7,11 @@ Also, for a valid return against result, not herr. (camel_gethostbyaddr): Likewise. +2003-05-13 Jeffrey Stedfast + + * 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 * providers/imap/camel-imap-utils.c (imap_uid_array_to_set): Added diff --git a/camel/providers/local/camel-local-folder.c b/camel/providers/local/camel-local-folder.c index ca49071d2e..74c876f226 100644 --- a/camel/providers/local/camel-local-folder.c +++ b/camel/providers/local/camel-local-folder.c @@ -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); } -- cgit