Skip to content

msdkdec: Fix GstMsdkContext leak

Seungha Yang requested to merge seungha.yang/gst-plugins-bad:msdkdec-leak into master

Fixing msdk context object leak.

==13842== 197 (104 direct, 93 indirect) bytes in 1 blocks are definitely lost in loss record 2,045 of 2,164
==13842==    at 0x54F7A94: g_type_create_instance (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5600.4)
==13842==    by 0x54D8747: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5600.4)
==13842==    by 0x54D9EE4: g_object_new_with_properties (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5600.4)
==13842==    by 0x54DA960: g_object_new (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5600.4)
==13842==    by 0xAFC5928: gst_msdk_context_new_with_parent (gstmsdkcontext.c:280)
==13842==    by 0xAFC9454: gst_msdkdec_context_prepare (gstmsdkdec.c:744)
==13842==    by 0xAFC9531: gst_msdkdec_start (gstmsdkdec.c:766)
==13842==    by 0x9F46B43: gst_video_decoder_change_state (gstvideodecoder.c:2542)
==13842==    by 0x4EB5BC1: gst_element_change_state (gstelement.c:3033)
==13842==    by 0x4EB5951: gst_element_set_state_func (gstelement.c:2987)
==13842==    by 0x4EB554D: gst_element_set_state (gstelement.c:2888)
==13842==    by 0x4E83F10: gst_bin_element_set_state (gstbin.c:2602)

Merge request reports

Loading