videodecoder: don't leak message strings when error is not fatal
This commit is contained in:
parent
0ea6526770
commit
6c0c3eb967
@ -3174,6 +3174,8 @@ _gst_video_decoder_error (GstVideoDecoder * dec, gint weight,
|
||||
domain, code, txt, dbg, file, function, line);
|
||||
return GST_FLOW_ERROR;
|
||||
} else {
|
||||
g_free (txt);
|
||||
g_free (dbg);
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user