summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <baulig@suse.de>2000-07-31 11:07:41 +0000
committerMartin Baulig <martin@src.gnome.org>2000-07-31 11:07:41 +0000
commit3d4b645743eae075a5c03b3cba78279f68e958d3 (patch)
treec965b0c745e59252dd4a3d207ab033b9f0847d4d
parent1d11664543fb07e53e7ca88e4030b767d9ecca48 (diff)
downloadpango-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--ChangeLog5
-rw-r--r--ChangeLog.pre-1-05
-rw-r--r--ChangeLog.pre-1-105
-rw-r--r--ChangeLog.pre-1-25
-rw-r--r--ChangeLog.pre-1-45
-rw-r--r--ChangeLog.pre-1-65
-rw-r--r--ChangeLog.pre-1-85
-rw-r--r--pango/pango-layout.c3
8 files changed, 38 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b036a64b..e6d4d864 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);
}