[librsvg/next: 9/31] Initialise GString member to NULL



commit 8fae30ee6525d576057635d50b0ecce8d1e4a868
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]