aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-08-02 03:51:09 +0800
committerDan Vrátil <dvratil@redhat.com>2012-08-02 04:15:28 +0800
commit436a31953e7492e6f41b948a1eae8d1ab6f20179 (patch)
tree2274b04790c354f7e7f45a2b3788ebd6dba6fd4d
parent8ba80fc715b957fd43d09ea396f6891b68addf31 (diff)
downloadgsoc2013-evolution-436a31953e7492e6f41b948a1eae8d1ab6f20179.tar
gsoc2013-evolution-436a31953e7492e6f41b948a1eae8d1ab6f20179.tar.gz
gsoc2013-evolution-436a31953e7492e6f41b948a1eae8d1ab6f20179.tar.bz2
gsoc2013-evolution-436a31953e7492e6f41b948a1eae8d1ab6f20179.tar.lz
gsoc2013-evolution-436a31953e7492e6f41b948a1eae8d1ab6f20179.tar.xz
gsoc2013-evolution-436a31953e7492e6f41b948a1eae8d1ab6f20179.tar.zst
gsoc2013-evolution-436a31953e7492e6f41b948a1eae8d1ab6f20179.zip
Fix some memory leaks
-rw-r--r--modules/prefer-plain/e-mail-display-popup-prefer-plain.c16
-rw-r--r--widgets/misc/e-web-view.c1
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 fa87357eb9..55ee45527b 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 0908449c6c..e24621e711 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);