[evolution/webkit: 43/196] Fix memory leak in EMFormat



commit 776422e0c1b9c80214f482c2910f995f89f2cf12
Author: Dan VrÃtil <dvratil redhat com>
Date:   Thu Oct 27 16:06:37 2011 +0200

    Fix memory leak in EMFormat

 em-format/em-format.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/em-format/em-format.c b/em-format/em-format.c
index a5538a3..c4c7687 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -1342,6 +1342,11 @@ em_format_finalize (GObject *object)
 {
 	EMFormat *emf = EM_FORMAT (object);
 
+	if (emf->message_uid) {
+		g_free (emf->message_uid);
+		emf->message_uid = NULL;
+	}
+
 	if (emf->message) {
 		g_object_unref (emf->message);
 		emf->message = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]