[sushi] font-widget: don't leak the font face
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] font-widget: don't leak the font face
- Date: Wed, 11 May 2011 05:00:34 +0000 (UTC)
commit 50533d2efabba6768ca81a8ed075b2352753a42d
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed May 11 01:00:11 2011 -0400
font-widget: don't leak the font face
src/libsushi/sushi-font-widget.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/libsushi/sushi-font-widget.c b/src/libsushi/sushi-font-widget.c
index ea0ae13..7ac2fd9 100644
--- a/src/libsushi/sushi-font-widget.c
+++ b/src/libsushi/sushi-font-widget.c
@@ -389,6 +389,13 @@ sushi_font_widget_finalize (GObject *object)
g_free (self->priv->uri);
+ if (self->priv->face != NULL) {
+ FT_Done_Face (self->priv->face);
+ self->priv->face = NULL;
+ }
+
+ g_free (self->priv->face_contents);
+
G_OBJECT_CLASS (sushi_font_widget_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]