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 <robert@linux.intel.com>

(cherry picked from commit ee834bf10a)
This commit is contained in:
Neil Roberts 2013-06-12 14:42:41 +01:00 committed by Robert Bragg
parent 7365c3aa77
commit 28deb1919a
1 changed files with 1 additions and 0 deletions

View File

@ -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);