vp9parser: remove checks for g_new0 result

The g_new0 aborts the process if it fails.  Thus,
there is no need to check if the g_new0 call succeeded.

This should silence a resource leak warning by static
scan.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3788>
This commit is contained in:
U. Artie Eoff 2023-01-25 09:10:57 -05:00 committed by GStreamer Marge Bot
parent 32e8ff4e2a
commit d071ea714d

View file

@ -632,20 +632,12 @@ GstVp9Parser *
gst_vp9_parser_new (void)
{
GstVp9Parser *parser;
GstVp9ParserPrivate *priv;
INITIALIZE_DEBUG_CATEGORY;
GST_DEBUG ("Create VP9 Parser");
parser = g_new0 (GstVp9Parser, 1);
if (!parser)
return NULL;
priv = g_new0 (GstVp9ParserPrivate, 1);
if (!priv)
return NULL;
parser->priv = priv;
parser->priv = g_new0 (GstVp9ParserPrivate, 1);
parser->subsampling_x = parser->subsampling_y = -1;
return parser;