Code

Initialize the pointer variables in draw-context with NULL, just to be on the safe...
authorcilix42 <cilix42@users.sourceforge.net>
Wed, 13 Aug 2008 14:54:37 +0000 (14:54 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Wed, 13 Aug 2008 14:54:37 +0000 (14:54 +0000)
src/draw-context.cpp

index 7bf01829d891c00f47143ab0e447c008dc23063f..97fcb7be6db9464444056189d662dd0f3a48f916 100644 (file)
@@ -116,6 +116,24 @@ sp_draw_context_init(SPDrawContext *dc)
     dc->green_color = 0x00ff007f;
     dc->red_curve_is_valid = false;
 
+    dc->red_bpath = NULL;
+    dc->red_curve = NULL;
+
+    dc->blue_bpath = NULL;
+    dc->blue_curve = NULL;
+
+    dc->green_bpaths = NULL;
+    dc->green_curve = NULL;
+    dc->green_anchor = NULL;
+    dc->green_closed = false;
+
+    dc->white_item = NULL;
+    dc->white_curves = NULL;
+    dc->white_anchors = NULL;
+
+    dc->sa = NULL;
+    dc->ea = NULL;
+
     dc->waiting_LPE_type = Inkscape::LivePathEffect::INVALID_LPE;
 
     new (&dc->sel_changed_connection) sigc::connection();