[librsvg] rsvg-gobject.c: g_free object after we free all it's attributes, not before (in instance_dispose() f
- From: Hiroyuki Ikezoe <hiikezoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] rsvg-gobject.c: g_free object after we free all it's attributes, not before (in instance_dispose() f
- Date: Fri, 2 Jul 2010 13:43:07 +0000 (UTC)
commit b78f0cfa37abfce1c34380f71e00151d508d2a5f
Author: Adam Tkac <atkac redhat com>
Date: Fri Jul 2 14:47:07 2010 +0200
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]