diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-14 21:51:11 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-15 01:43:08 -0800 |
commit | 8ef6ecc244285161ce5d12dfd1e6fda2c55c329c (patch) | |
tree | 7d82540e99d2dcfebb3883a8048af2eaf9c2a2b9 | |
parent | 492e917a6d713df4474271a2f212fdb264ac02e2 (diff) |
v4l2/object: remove unnecessary NULL check before g_free()
-rw-r--r-- | sys/v4l2/gstv4l2object.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index 4a2acd304..ab37b8f87 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -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); |