mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
32e8ff4e2a
commit
d071ea714d
1 changed files with 1 additions and 9 deletions
|
@ -632,20 +632,12 @@ GstVp9Parser *
|
||||||
gst_vp9_parser_new (void)
|
gst_vp9_parser_new (void)
|
||||||
{
|
{
|
||||||
GstVp9Parser *parser;
|
GstVp9Parser *parser;
|
||||||
GstVp9ParserPrivate *priv;
|
|
||||||
|
|
||||||
INITIALIZE_DEBUG_CATEGORY;
|
INITIALIZE_DEBUG_CATEGORY;
|
||||||
GST_DEBUG ("Create VP9 Parser");
|
GST_DEBUG ("Create VP9 Parser");
|
||||||
|
|
||||||
parser = g_new0 (GstVp9Parser, 1);
|
parser = g_new0 (GstVp9Parser, 1);
|
||||||
if (!parser)
|
parser->priv = g_new0 (GstVp9ParserPrivate, 1);
|
||||||
return NULL;
|
|
||||||
|
|
||||||
priv = g_new0 (GstVp9ParserPrivate, 1);
|
|
||||||
if (!priv)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
parser->priv = priv;
|
|
||||||
parser->subsampling_x = parser->subsampling_y = -1;
|
parser->subsampling_x = parser->subsampling_y = -1;
|
||||||
|
|
||||||
return parser;
|
return parser;
|
||||||
|
|
Loading…
Reference in a new issue