mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
testsuite: Fix some memory leaks reported by asan
This commit is contained in:
parent
8e73d007f5
commit
779c71b66d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user