diff options
author | Milan Crha <mcrha@redhat.com> | 2010-09-08 00:39:46 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-09-08 00:39:46 +0800 |
commit | 101305e1c7dc24f5a40e80a900b0777b2634722f (patch) | |
tree | cc4fbb384d94d045c192c2b338e8f76db5b9c312 /widgets/text | |
parent | ba5bb60860c0e0eff92cd7d2c4ae098fa107c331 (diff) | |
download | gsoc2013-evolution-101305e1c7dc24f5a40e80a900b0777b2634722f.tar gsoc2013-evolution-101305e1c7dc24f5a40e80a900b0777b2634722f.tar.gz gsoc2013-evolution-101305e1c7dc24f5a40e80a900b0777b2634722f.tar.bz2 gsoc2013-evolution-101305e1c7dc24f5a40e80a900b0777b2634722f.tar.lz gsoc2013-evolution-101305e1c7dc24f5a40e80a900b0777b2634722f.tar.xz gsoc2013-evolution-101305e1c7dc24f5a40e80a900b0777b2634722f.tar.zst gsoc2013-evolution-101305e1c7dc24f5a40e80a900b0777b2634722f.zip |
Various memory leaks
Diffstat (limited to 'widgets/text')
-rw-r--r-- | widgets/text/e-text.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index 0383b00597..bb9b2dda51 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -429,6 +429,9 @@ reset_layout (EText *text) cairo_font_options_destroy (font_options); pango_layout_context_changed (text->layout); + if (text->font_desc) { + pango_font_description_free (text->font_desc); + } text->font_desc = pango_font_description_new (); if (!pango_font_description_get_size_is_absolute (style->font_desc)) pango_font_description_set_size (text->font_desc, |