[gmime] Fixed a leak when adding signatures to a GMimeSignatureList
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Fixed a leak when adding signatures to a GMimeSignatureList
- Date: Wed, 20 Dec 2017 17:13:10 +0000 (UTC)
commit 9a7f102aa3d3babe8b0ca478ed6c7c06d70d9def
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date: Sun Dec 17 20:04:23 2017 -0500
Fixed a leak when adding signatures to a GMimeSignatureList
gmime/gmime-gpgme-utils.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gmime/gmime-gpgme-utils.c b/gmime/gmime-gpgme-utils.c
index 8b814b3..280b92a 100644
--- a/gmime/gmime-gpgme-utils.c
+++ b/gmime/gmime-gpgme-utils.c
@@ -321,6 +321,8 @@ g_mime_gpgme_get_signatures (gpgme_ctx_t ctx, gboolean verify)
while (sig != NULL) {
signature = g_mime_signature_new ();
g_mime_signature_list_add (signatures, signature);
+ g_object_unref (signature);
+
g_mime_signature_set_status (signature, (GMimeSignatureStatus) sig->summary);
g_mime_signature_set_expires (signature, sig->exp_timestamp);
g_mime_signature_set_created (signature, sig->timestamp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]