[cogl/cogl-1.16] cogl-path: Fix the uninitialised path->fill_primitive
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/cogl-1.16] cogl-path: Fix the uninitialised path->fill_primitive
- Date: Tue, 20 Aug 2013 00:20:00 +0000 (UTC)
commit 28deb1919af9d8355826985da10cf521e3bbd131
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>
(cherry picked from commit ee834bf10a05cf000d4bc4dd2438ca6cedd8a2b5)
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 5814659..ff44070 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]