[evolution-data-server/gnome-3-4] Avoid possible GError memory leak
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-4] Avoid possible GError memory leak
- Date: Wed, 6 Jun 2012 09:17:06 +0000 (UTC)
commit 74c7636d14005d4cac3bc714274057544f0f60c7
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 6 11:16:46 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 8dad22c..06f0ccb 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]