libs: dec: vp9: clear parser pointer after release

Fix an use-after-release of the parser pointer in VP9 decoder.
parent 53d86ff5
Pipeline #39702 passed with stages
in 17 minutes and 34 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment