testsuite: Fix some memory leaks reported by asan

This commit is contained in:
Matthias Clasen 2020-07-08 15:05:16 -04:00
parent 8e73d007f5
commit 779c71b66d

View File

@ -102,7 +102,7 @@ create_texture (GdkMemoryFormat format,
tests[format].bytes_per_pixel);
}
bytes = g_bytes_new_static (data, height * MAX (stride, tests[format].bytes_per_pixel));
bytes = g_bytes_new_take (data, height * MAX (stride, tests[format].bytes_per_pixel));
texture = gdk_memory_texture_new (width, height,
format,
bytes,