[evolution-ews] Fix an invalid unref call and a memory leak of an EEwsConnection object
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Fix an invalid unref call and a memory leak of an EEwsConnection object
- Date: Wed, 12 Sep 2018 11:56:07 +0000 (UTC)
commit c461ec6a8b818c6da91cb48dc0f0b5ee52f64467
Author: Milan Crha <mcrha redhat com>
Date: Fri Sep 7 10:13:34 2018 +0200
Fix an invalid unref call and a memory leak of an EEwsConnection object
src/camel/camel-ews-folder.c | 2 +-
src/camel/camel-ews-search.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/camel/camel-ews-folder.c b/src/camel/camel-ews-folder.c
index 0cbf4a77..d388bd27 100644
--- a/src/camel/camel-ews-folder.c
+++ b/src/camel/camel-ews-folder.c
@@ -1020,7 +1020,7 @@ exit:
if (mime_fname_new)
g_free (mime_fname_new);
- g_object_unref (cnc);
+ g_clear_object (&cnc);
return message;
}
diff --git a/src/camel/camel-ews-search.c b/src/camel/camel-ews-search.c
index 8f228170..71ca36ad 100644
--- a/src/camel/camel-ews-search.c
+++ b/src/camel/camel-ews-search.c
@@ -267,6 +267,7 @@ ews_search_process_criteria (CamelSExp *sexp,
e_ews_folder_id_free (fid);
}
+ g_clear_object (&connection);
g_free (folder_id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]