[cogl] cogl-path: Fix the uninitialised path->fill_primitive
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] cogl-path: Fix the uninitialised path->fill_primitive
- Date: Thu, 13 Jun 2013 12:24:49 +0000 (UTC)
commit ee834bf10a05cf000d4bc4dd2438ca6cedd8a2b5
Author: Neil Roberts <neil linux intel com>
Date: Wed Jun 12 14:42:41 2013 +0100
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>
cogl-path/cogl-path.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/cogl-path/cogl-path.c b/cogl-path/cogl-path.c
index 9a1d1df..be8bb04 100644
--- a/cogl-path/cogl-path.c
+++ b/cogl-path/cogl-path.c
@@ -890,6 +890,7 @@ cogl_path_new (CoglContext *context)
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]