librsvg2/rsvg-better-free.patch

17 lines
448 B
Diff
Raw Normal View History

2008-09-18 18:45:02 +00:00
Index: rsvg-image.c
===================================================================
--- rsvg-image.c (revision 1176)
+++ rsvg-image.c (working copy)
@@ -472,9 +472,10 @@
RsvgNodeImage *z = (RsvgNodeImage *) self;
rsvg_state_finalize (z->super.state);
g_free (z->super.state);
+ z->super.state = NULL;
if (z->img)
g_object_unref (G_OBJECT (z->img));
- g_free (z);
+ _rsvg_node_free(self);
}
static void