From 368c038ef01346c72f7cdc427a40cf94ea40d71a Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Mon, 29 Jun 2020 20:57:06 +0200 Subject: [PATCH] rtmp2: Mark our memory singleton as leakable So it doesn't appear in the leaks tracer. Part-of: --- gst/rtmp2/rtmp/rtmpconnection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/rtmp2/rtmp/rtmpconnection.c b/gst/rtmp2/rtmp/rtmpconnection.c index d85f6ff..df56b15 100644 --- a/gst/rtmp2/rtmp/rtmpconnection.c +++ b/gst/rtmp2/rtmp/rtmpconnection.c @@ -208,6 +208,9 @@ init_set_data_frame_value (void) set_data_frame_value = gst_memory_new_wrapped (GST_MEMORY_FLAG_READONLY, (gpointer) data, size, 0, size, bytes, (GDestroyNotify) g_bytes_unref); + GST_MINI_OBJECT_FLAG_SET (set_data_frame_value, + GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED); + gst_amf_node_free (node); } -- 2.7.4