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



commit a5dcd06c0caa511446bd58e67f5c66a6b16309da
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]