summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-06-06 11:16:46 +0200
committerMilan Crha <mcrha@redhat.com>2012-06-06 11:16:46 +0200
commit74c7636d14005d4cac3bc714274057544f0f60c7 (patch)
treeaf7255cfc4371ad8c046978b5bcbb5921caeb65b
parent4f3651c3d77f5f4e806291f366db2850912d0b7a (diff)
downloadevolution-data-server-74c7636d14005d4cac3bc714274057544f0f60c7.tar.gz
Avoid possible GError memory leak
-rw-r--r--camel/camel-folder-summary.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c
index 8dad22c15..06f0ccbee 100644
--- a/camel/camel-folder-summary.c
+++ b/camel/camel-folder-summary.c
@@ -2238,7 +2238,9 @@ camel_folder_summary_load_from_db (CamelFolderSummary *summary,
summary->priv->uids, &local_error);
if (local_error != NULL && local_error->message != NULL &&
- strstr (local_error->message, "no such table") != NULL) {
+ strstr (local_error->message, "no such table") != NULL) {
+ g_clear_error (&local_error);
+
/* create table the first time it is accessed and missing */
ret = camel_db_prepare_message_info_table (cdb, full_name, error);
} else if (local_error != NULL)