v4l2/object: remove unnecessary NULL check before g_free()

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-11-14 21:51:11 -08:00
parent 492e917a6d
commit 8ef6ecc244

View file

@ -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);