diff options
author | Michael Henning <drawoc@darkrefraction.com> | 2014-08-10 12:45:05 -0400 |
---|---|---|
committer | Michael Henning <drawoc@darkrefraction.com> | 2014-08-10 12:45:05 -0400 |
commit | bfb03d9b34b5607ff33ea688fc078b656672ffae (patch) | |
tree | 7859425b97ae74d3a09a4c8e5227c5ec72e2ffd5 /tests | |
parent | 552b7afbf8092a763563831648256b1bd3f1716b (diff) |
tests/simple: Don't call gegl_color_new until after gegl_init
If you call gegl_color_new before gegl_init, it will now try to
call babl before babl was initialized and segfault.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple/test-node-properties.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/simple/test-node-properties.c b/tests/simple/test-node-properties.c index fd274131..3a72def1 100644 --- a/tests/simple/test-node-properties.c +++ b/tests/simple/test-node-properties.c @@ -29,7 +29,7 @@ int main(int argc, char *argv[]) int result = SUCCESS; GeglNode *graph = NULL; GeglNode *node = NULL; - GeglColor *color = gegl_color_new ("rgb(0.0, 1.0, 0.0)"); + GeglColor *color = NULL; double x = -5; double y = -5; char *name = NULL; @@ -37,7 +37,9 @@ int main(int argc, char *argv[]) /* Init */ gegl_init (&argc, &argv); - + + color = gegl_color_new ("rgb(0.0, 1.0, 0.0)"); + graph = gegl_node_new (); node = gegl_node_new_child (graph, "operation", "gegl:color", |