tests/lc3: Allocate the same size for the buffer and the data

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7631>
This commit is contained in:
Jordan Petridis 2024-10-09 20:37:10 +03:00 committed by GStreamer Marge Bot
parent 384cb299ec
commit ab54e45f67

View file

@ -252,7 +252,7 @@ static GstBuffer *
create_test_buffer (guint64 num, guint64 size) create_test_buffer (guint64 num, guint64 size)
{ {
GstBuffer *buffer; GstBuffer *buffer;
guint64 *data = g_malloc (sizeof (guint64)); guint64 *data = g_malloc (size);
*data = num; *data = num;