From de6cb9b637c288797fc5a1c51b9020b1b017df2e Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Thu, 26 Jul 2007 12:30:30 +0000 Subject: Plugged memory leak. 2007-07-26 Hiroyuki Ikezoe * text/e-text.c: (e_text_dispose): Plugged memory leak. svn path=/trunk/; revision=33848 --- widgets/ChangeLog | 4 ++++ widgets/text/e-text.c | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'widgets') diff --git a/widgets/ChangeLog b/widgets/ChangeLog index be5b35bb91..49be5eaf93 100644 --- a/widgets/ChangeLog +++ b/widgets/ChangeLog @@ -1,3 +1,7 @@ +2007-07-26 Hiroyuki Ikezoe + + * text/e-text.c: (e_text_dispose): Plugged memory leak. + 2007-07-19 Hiroyuki Ikezoe * text/e-text.c: (e_text_copy_clipboard): Remove needless g_strndup(). 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); } -- cgit v1.2.3