v4l2/object: remove unnecessary NULL check before g_free()
This commit is contained in:
parent
492e917a6d
commit
8ef6ecc244
@ -465,11 +465,9 @@ gst_v4l2_object_destroy (GstV4l2Object * v4l2object)
|
||||
{
|
||||
g_return_if_fail (v4l2object != NULL);
|
||||
|
||||
if (v4l2object->videodev)
|
||||
g_free (v4l2object->videodev);
|
||||
g_free (v4l2object->videodev);
|
||||
|
||||
if (v4l2object->channel)
|
||||
g_free (v4l2object->channel);
|
||||
g_free (v4l2object->channel);
|
||||
|
||||
if (v4l2object->formats) {
|
||||
gst_v4l2_object_clear_format_list (v4l2object);
|
||||
|
Loading…
x
Reference in New Issue
Block a user