[evolution-data-server] Avoid possible GError memory leak
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Avoid possible GError memory leak
- Date: Wed, 6 Jun 2012 09:16:32 +0000 (UTC)
commit 7ed9ef5a3ac9023e0d7a9cb7b1d490227c7dd1d4
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 6 11:16:21 2012 +0200
Avoid possible GError memory leak
camel/camel-folder-summary.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c
index 67a2e0b..b8daf18 100644
--- a/camel/camel-folder-summary.c
+++ b/camel/camel-folder-summary.c
@@ -2340,7 +2340,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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]