[evolution/webkit] Fix memory leak in EMFormat
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit] Fix memory leak in EMFormat
- Date: Thu, 27 Oct 2011 14:19:32 +0000 (UTC)
commit 15909d067e1b0f15522d587162f1b1e64a55936d
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 dde45e3..9984789 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]