aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-text.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/text/e-text.c')
-rw-r--r--widgets/text/e-text.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index e1ce88ebd6..c523548765 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -272,6 +272,11 @@ e_text_dispose (GObject *object)
text->im_context = NULL;
}
+ if (text->font_desc) {
+ pango_font_description_free (text->font_desc);
+ text->font_desc = NULL;
+ }
+
if (G_OBJECT_CLASS (parent_class)->dispose)
(* G_OBJECT_CLASS (parent_class)->dispose) (object);
}