mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
libs: dec: vp9: clear parser pointer after release
Fix an use-after-release of the parser pointer in VP9 decoder.
This commit is contained in:
parent
53d86ff519
commit
e62b321efe
1 changed files with 1 additions and 2 deletions
|
@ -118,8 +118,7 @@ gst_vaapi_decoder_vp9_close (GstVaapiDecoderVp9 * decoder)
|
|||
for (i = 0; i < GST_VP9_REF_FRAMES; i++)
|
||||
gst_vaapi_picture_replace (&priv->ref_frames[i], NULL);
|
||||
|
||||
if (priv->parser)
|
||||
gst_vp9_parser_free (priv->parser);
|
||||
g_clear_pointer (&priv->parser, gst_vp9_parser_free);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue