diff options
author | Martin Baulig <baulig@suse.de> | 2000-07-31 11:07:41 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 2000-07-31 11:07:41 +0000 |
commit | 3d4b645743eae075a5c03b3cba78279f68e958d3 (patch) | |
tree | c965b0c745e59252dd4a3d207ab033b9f0847d4d | |
parent | 1d11664543fb07e53e7ca88e4030b767d9ecca48 (diff) | |
download | pango-3d4b645743eae075a5c03b3cba78279f68e958d3.tar.gz |
Destroy the layout->font_desc to avoid a memory leak.
2000-07-28 Martin Baulig <baulig@suse.de>
* pango/pango-layout.c (pango_layout_finalize): Destroy
the layout->font_desc to avoid a memory leak.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-0 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-2 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-4 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 5 | ||||
-rw-r--r-- | pango/pango-layout.c | 3 |
8 files changed, 38 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2000-07-28 Martin Baulig <baulig@suse.de> + + * pango/pango-layout.c (pango_layout_finalize): Destroy + the layout->font_desc to avoid a memory leak. + 2000-07-27 Tor Lillqvist <tml@iki.fi> * pango/pango.def diff --git a/ChangeLog.pre-1-0 b/ChangeLog.pre-1-0 index b036a64b..e6d4d864 100644 --- a/ChangeLog.pre-1-0 +++ b/ChangeLog.pre-1-0 @@ -1,3 +1,8 @@ +2000-07-28 Martin Baulig <baulig@suse.de> + + * pango/pango-layout.c (pango_layout_finalize): Destroy + the layout->font_desc to avoid a memory leak. + 2000-07-27 Tor Lillqvist <tml@iki.fi> * pango/pango.def diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index b036a64b..e6d4d864 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,8 @@ +2000-07-28 Martin Baulig <baulig@suse.de> + + * pango/pango-layout.c (pango_layout_finalize): Destroy + the layout->font_desc to avoid a memory leak. + 2000-07-27 Tor Lillqvist <tml@iki.fi> * pango/pango.def diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2 index b036a64b..e6d4d864 100644 --- a/ChangeLog.pre-1-2 +++ b/ChangeLog.pre-1-2 @@ -1,3 +1,8 @@ +2000-07-28 Martin Baulig <baulig@suse.de> + + * pango/pango-layout.c (pango_layout_finalize): Destroy + the layout->font_desc to avoid a memory leak. + 2000-07-27 Tor Lillqvist <tml@iki.fi> * pango/pango.def diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index b036a64b..e6d4d864 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,8 @@ +2000-07-28 Martin Baulig <baulig@suse.de> + + * pango/pango-layout.c (pango_layout_finalize): Destroy + the layout->font_desc to avoid a memory leak. + 2000-07-27 Tor Lillqvist <tml@iki.fi> * pango/pango.def diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index b036a64b..e6d4d864 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,8 @@ +2000-07-28 Martin Baulig <baulig@suse.de> + + * pango/pango-layout.c (pango_layout_finalize): Destroy + the layout->font_desc to avoid a memory leak. + 2000-07-27 Tor Lillqvist <tml@iki.fi> * pango/pango.def diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index b036a64b..e6d4d864 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,8 @@ +2000-07-28 Martin Baulig <baulig@suse.de> + + * pango/pango-layout.c (pango_layout_finalize): Destroy + the layout->font_desc to avoid a memory leak. + 2000-07-27 Tor Lillqvist <tml@iki.fi> * pango/pango.def diff --git a/pango/pango-layout.c b/pango/pango-layout.c index a1d266df..8c5cf403 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -161,6 +161,9 @@ pango_layout_finalize (GObject *object) pango_attr_list_unref (layout->attrs); if (layout->text) g_free (layout->text); + + if (layout->font_desc) + pango_font_description_free (layout->font_desc); G_OBJECT_CLASS (parent_class)->finalize (object); } |