From 28deb1919af9d8355826985da10cf521e3bbd131 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 12 Jun 2013 14:42:41 +0100 Subject: [PATCH] cogl-path: Fix the uninitialised path->fill_primitive This was not being uninitialised so it was sometimes causing a crash when it tried to unref an invalid pointer. This was causing test-path to fail for me. Reviewed-by: Robert Bragg (cherry picked from commit ee834bf10a05cf000d4bc4dd2438ca6cedd8a2b5) --- cogl-path/cogl-path.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cogl-path/cogl-path.c b/cogl-path/cogl-path.c index 58146593b..ff440701a 100644 --- a/cogl-path/cogl-path.c +++ b/cogl-path/cogl-path.c @@ -915,6 +915,7 @@ cogl2_path_new (void) data->last_path = 0; data->fill_attribute_buffer = NULL; data->stroke_attribute_buffer = NULL; + data->fill_primitive = NULL; data->is_rectangle = FALSE; return _cogl_path_object_new (path);