v4l2/object: remove unnecessary NULL check before g_free()
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sun, 15 Nov 2015 05:51:11 +0000 (21:51 -0800)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sun, 15 Nov 2015 09:43:08 +0000 (01:43 -0800)
sys/v4l2/gstv4l2object.c

index 4a2acd304b534cdf8eea719a6ac0380ef987fe44..ab37b8f87d7d765446d41516e25b42c082822361 100644 (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);