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



commit 1b5d256becc11aeb9b2ec26e6763a2faf63cf056
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 74c6272..a18e999 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -1338,6 +1338,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]