[evolution] Fix some memory leaks
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Fix some memory leaks
- Date: Wed, 1 Aug 2012 20:15:49 +0000 (UTC)
commit 436a31953e7492e6f41b948a1eae8d1ab6f20179
Author: Dan VrÃtil <dvratil redhat com>
Date: Wed Aug 1 21:51:09 2012 +0200
Fix some memory leaks
.../e-mail-display-popup-prefer-plain.c | 16 ++++++++++++++++
widgets/misc/e-web-view.c | 1 +
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/modules/prefer-plain/e-mail-display-popup-prefer-plain.c b/modules/prefer-plain/e-mail-display-popup-prefer-plain.c
index fa87357..55ee455 100644
--- a/modules/prefer-plain/e-mail-display-popup-prefer-plain.c
+++ b/modules/prefer-plain/e-mail-display-popup-prefer-plain.c
@@ -351,14 +351,30 @@ e_mail_display_popup_prefer_plain_type_register (GTypeModule *type_module)
}
static void
+e_mail_display_popup_prefer_plain_finalize (GObject *object)
+{
+ EMailDisplayPopupPreferPlain *extension;
+
+ extension = E_MAIL_DISPLAY_POPUP_PREFER_PLAIN (object);
+
+ g_free (extension->text_html_id);
+ g_free (extension->text_plain_id);
+ g_object_unref (extension->action_group);
+}
+
+static void
e_mail_display_popup_prefer_plain_class_init (EMailDisplayPopupPreferPlainClass *klass)
{
EExtensionClass *extension_class;
+ GObjectClass *object_class;
e_mail_display_popup_prefer_plain_parent_class = g_type_class_peek_parent (klass);
extension_class = E_EXTENSION_CLASS (klass);
extension_class->extensible_type = E_TYPE_MAIL_DISPLAY;
+
+ object_class = G_OBJECT_CLASS (klass);
+ object_class->finalize = e_mail_display_popup_prefer_plain_finalize;
}
static void
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c
index 0908449..e24621e 100644
--- a/widgets/misc/e-web-view.c
+++ b/widgets/misc/e-web-view.c
@@ -936,6 +936,7 @@ web_view_button_press_event (GtkWidget *widget,
g_object_unref (loader);
break;
}
+ g_list_free (subresources);
}
g_object_unref (test);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]