mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
msdk: decoder: fix an usage-after-free pointer bug
This commit is contained in:
parent
85c75bb23b
commit
882befb5db
1 changed files with 1 additions and 1 deletions
|
@ -161,9 +161,9 @@ free_surface (GstMsdkDec * thiz, MsdkSurface * s)
|
|||
gst_video_frame_unmap (&s->data);
|
||||
|
||||
gst_buffer_unref (s->buf);
|
||||
thiz->decoded_msdk_surfaces = g_list_remove (thiz->decoded_msdk_surfaces, s);
|
||||
|
||||
g_slice_free (MsdkSurface, s);
|
||||
thiz->decoded_msdk_surfaces = g_list_remove (thiz->decoded_msdk_surfaces, s);
|
||||
}
|
||||
|
||||
static MsdkSurface *
|
||||
|
|
Loading…
Reference in a new issue