[librsvg] Initialise GString member to NULL
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Initialise GString member to NULL
- Date: Mon, 7 Nov 2011 19:26:22 +0000 (UTC)
commit 132be612c6c54ea9664206324c65189142be955c
Author: Christian Persch <chpe gnome org>
Date: Sat Sep 10 19:38:06 2011 +0200
Initialise GString member to NULL
Otherwise we get an invalid read when freeing this node.
rsvg-filter.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/rsvg-filter.c b/rsvg-filter.c
index 8ebf20e..256c876 100644
--- a/rsvg-filter.c
+++ b/rsvg-filter.c
@@ -3522,6 +3522,7 @@ rsvg_new_filter_primitive_image (void)
filter->super.render = &rsvg_filter_primitive_image_render;
filter->super.super.free = &rsvg_filter_primitive_image_free;
filter->super.super.set_atts = rsvg_filter_primitive_image_set_atts;
+ filter->href = NULL;
return (RsvgNode *) filter;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]