From 9ab2541266526b64a09fa7d8e7e58856dde27cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 8 Jan 2023 17:25:46 +0000 Subject: [PATCH] gdkpixbuf: drop use of GSlice Part-of: --- .../gst-plugins-good/ext/gdk_pixbuf/gstgdkpixbufsink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-good/ext/gdk_pixbuf/gstgdkpixbufsink.c b/subprojects/gst-plugins-good/ext/gdk_pixbuf/gstgdkpixbufsink.c index 01e75bb026..56592a7e6a 100644 --- a/subprojects/gst-plugins-good/ext/gdk_pixbuf/gstgdkpixbufsink.c +++ b/subprojects/gst-plugins-good/ext/gdk_pixbuf/gstgdkpixbufsink.c @@ -267,7 +267,7 @@ gst_gdk_pixbuf_sink_pixbuf_destroy_notify (guchar * pixels, { gst_video_frame_unmap (frame); gst_buffer_unref (frame->buffer); - g_slice_free (GstVideoFrame, frame); + g_free (frame); } static GdkPixbuf * @@ -281,7 +281,7 @@ gst_gdk_pixbuf_sink_get_pixbuf_from_buffer (GstGdkPixbufSink * sink, g_return_val_if_fail (GST_VIDEO_SINK_WIDTH (sink) > 0, NULL); g_return_val_if_fail (GST_VIDEO_SINK_HEIGHT (sink) > 0, NULL); - frame = g_slice_new0 (GstVideoFrame); + frame = g_new0 (GstVideoFrame, 1); gst_video_frame_map (frame, &sink->info, buf, GST_MAP_READ); bytes_per_pixel = (sink->has_alpha) ? 4 : 3;