mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
clutter: fix memleak in test error path
If clutter_init fails then we will not free state. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1195
This commit is contained in:
parent
506e06589b
commit
d0ef660ff6
@ -112,7 +112,7 @@ test_cogl_multitexture_main (int argc, char *argv[])
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
ClutterActor *stage;
|
ClutterActor *stage;
|
||||||
ClutterColor stage_color = { 0x61, 0x56, 0x56, 0xff };
|
ClutterColor stage_color = { 0x61, 0x56, 0x56, 0xff };
|
||||||
TestMultiLayerMaterialState *state = g_new0 (TestMultiLayerMaterialState, 1);
|
g_autofree TestMultiLayerMaterialState *state = g_new0 (TestMultiLayerMaterialState, 1);
|
||||||
gfloat stage_w, stage_h;
|
gfloat stage_w, stage_h;
|
||||||
gchar **files;
|
gchar **files;
|
||||||
gfloat tex_coords[] =
|
gfloat tex_coords[] =
|
||||||
|
Loading…
Reference in New Issue
Block a user