[gtk/matthiasc/for-master: 5/5] testsuite: Fix some memory leaks reported by asan
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 5/5] testsuite: Fix some memory leaks reported by asan
- Date: Wed, 8 Jul 2020 19:10:12 +0000 (UTC)
commit 779c71b66db507dba57d255832eeb5f2b041918b
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 8 15:05:16 2020 -0400
testsuite: Fix some memory leaks reported by asan
testsuite/gdk/memorytexture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/testsuite/gdk/memorytexture.c b/testsuite/gdk/memorytexture.c
index 3f941cdb29..5f61b8c079 100644
--- a/testsuite/gdk/memorytexture.c
+++ b/testsuite/gdk/memorytexture.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]