37 lines
957 B
Diff
37 lines
957 B
Diff
|
From f1ef3c88012778fe13fed466fcb2cee1eac351fd Mon Sep 17 00:00:00 2001
|
||
|
From: Adam Tkac <atkac@redhat.com>
|
||
|
Date: Fri, 2 Jul 2010 14:47:07 +0200
|
||
|
Subject: [PATCH] rsvg-gobject.c: g_free object after we free all it's attributes, not before
|
||
|
(in instance_dispose() function)
|
||
|
|
||
|
Signed-off-by: Adam Tkac <atkac@redhat.com>
|
||
|
---
|
||
|
rsvg-gobject.c | 4 ++--
|
||
|
1 files changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/rsvg-gobject.c b/rsvg-gobject.c
|
||
|
index 61b7cb8..43fb5a8 100644
|
||
|
--- a/rsvg-gobject.c
|
||
|
+++ b/rsvg-gobject.c
|
||
|
@@ -134,8 +134,6 @@ instance_dispose (GObject * instance)
|
||
|
if (self->priv->base_uri)
|
||
|
g_free (self->priv->base_uri);
|
||
|
|
||
|
- g_free (self->priv);
|
||
|
-
|
||
|
#if GLIB_CHECK_VERSION (2, 24, 0)
|
||
|
if (self->priv->base_gfile) {
|
||
|
g_object_unref (self->priv->base_gfile);
|
||
|
@@ -152,6 +150,8 @@ instance_dispose (GObject * instance)
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
+ g_free (self->priv);
|
||
|
+
|
||
|
rsvg_parent_class->dispose (instance);
|
||
|
}
|
||
|
|
||
|
--
|
||
|
1.7.1
|
||
|
|