summaryrefslogtreecommitdiff
path: root/rsvg-structure.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2005-12-07 13:25:05 +0000
committerDom Lachowicz <doml@src.gnome.org>2005-12-07 13:25:05 +0000
commit2f837714311e97d56d33819aaa31a4e96ac66c2e (patch)
treee05fb97e84cea1c11c8909ba0624362c055e644a /rsvg-structure.c
parent847f3950fbd5bd9342f94759c79a98e8ca8b86d3 (diff)
downloadlibrsvg-2f837714311e97d56d33819aaa31a4e96ac66c2e.tar.gz
remove the push call that's more probably wrong and clean up leaked
2005-12-07 Ray Strode <rstrode@redhat.com> * rsvg-base.c: remove the push call that's more probably wrong and clean up leaked viewbox list node (bug 323436) * rsvg-shapes.c: call finalize cleanup function of node parent class in path_node and poly_node free functions (bug 323435) * rsvg-structure.c: Ditto * rsvg-structure.h: Ditto
Diffstat (limited to 'rsvg-structure.c')
-rw-r--r--rsvg-structure.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/rsvg-structure.c b/rsvg-structure.c
index 299a039c..ea004d8f 100644
--- a/rsvg-structure.c
+++ b/rsvg-structure.c
@@ -103,7 +103,7 @@ _rsvg_node_init(RsvgNode *self)
}
void
-_rsvg_node_free (RsvgNode *self)
+_rsvg_node_finalize (RsvgNode *self)
{
if (self->state != NULL)
{
@@ -114,6 +114,13 @@ _rsvg_node_free (RsvgNode *self)
g_ptr_array_free(self->children, TRUE);
if (self->type != NULL)
g_string_free(self->type, TRUE);
+
+}
+
+void
+_rsvg_node_free (RsvgNode *self)
+{
+ _rsvg_node_finalize (self);
g_free (self);
}