aboutsummaryrefslogtreecommitdiffstats
path: root/modules/prefer-plain/e-mail-display-popup-prefer-plain.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/prefer-plain/e-mail-display-popup-prefer-plain.c')
-rw-r--r--modules/prefer-plain/e-mail-display-popup-prefer-plain.c16
1 files changed, 16 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