kmssink: memory leak detected
This leak appears with the given pipeline using a fpsdisplaysink
gst-launch-1.0 -v videotestsrc num-buffers=1 ! video/x-raw,format=NV12,width=320,height=240, framerate=60/1 ! fpsdisplaysink name=fpssink text-overlay=false video-sink="kmssink bus-id="a0070000.v_mix
but not with:
gst-launch-1.0 -v videotestsrc num-buffers=1 ! video/x-raw,format=NV12,width=320,height=240, framerate=60/1 ! kmssink bus-id="a0070000.v_mix
==00:00:00:12.873 4785== 112 (72 direct, 40 indirect) bytes in 1 blocks are definitely lost in loss record 1,888 of 2,119
==00:00:00:12.873 4785== at 0x4857100: malloc (vg_replace_malloc.c:299)
==00:00:00:12.873 4785== by 0x48CCA0F: g_malloc (gmem.c:99)
==00:00:00:12.873 4785== by 0x48E5827: g_slice_alloc (gslice.c:1024)
==00:00:00:12.873 4785== by 0x4A732EB: gst_caps_new_empty (gstcaps.c:257)
==00:00:00:12.873 4785== by 0xC357EDB: ensure_allowed_caps (gstkmssink.c:521)
==00:00:00:12.873 4785== by 0xC357EDB: gst_kms_sink_start (gstkmssink.c:776)
==00:00:00:12.873 4785== by 0xBEFE10B: gst_base_sink_change_state (gstbasesink.c:5644)
==00:00:00:12.873 4785== by 0x4A8D9AF: gst_element_change_state (gstelement.c:3033)
==00:00:00:12.873 4785== by 0x4A8E033: gst_element_set_state_func (gstelement.c:2987)
==00:00:00:12.873 4785== by 0x4A65853: gst_bin_element_set_state (gstbin.c:2615)
==00:00:00:12.873 4785== by 0x4A65853: gst_bin_change_state_func (gstbin.c:2957)
==00:00:00:12.873 4785== by 0xC134BDB: fps_display_sink_change_state (fpsdisplaysink.c:663)
==00:00:00:12.873 4785== by 0x4A8D9AF: gst_element_change_state (gstelement.c:3033)
==00:00:00:12.873 4785== by 0x4A8E033: gst_element_set_state_func (gstelement.c:2987)
==00:00:00:12.873 4785== by 0x4A65853: gst_bin_element_set_state (gstbin.c:2615)
==00:00:00:12.873 4785== by 0x4A65853: gst_bin_change_state_func (gstbin.c:2957)
==00:00:00:12.873 4785== by 0x4ABD0B7: gst_pipeline_change_state (gstpipeline.c:525)
==00:00:00:12.873 4785== by 0x4A8D9AF: gst_element_change_state (gstelement.c:3033)
==00:00:00:12.873 4785== by 0x4A8E033: gst_element_set_state_func (gstelement.c:2987)
==00:00:00:12.873 4785== by 0x10BF9F: main (gst-launch.c:1204)