From 492e917a6d713df4474271a2f212fdb264ac02e2 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Sat, 14 Nov 2015 21:45:29 -0800 Subject: osssrc: remove unnecessary NULL check before g_free() --- sys/oss/gstosssrc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/oss/gstosssrc.c b/sys/oss/gstosssrc.c index 742c59dc4..60c9e0534 100644 --- a/sys/oss/gstosssrc.c +++ b/sys/oss/gstosssrc.c @@ -181,8 +181,7 @@ gst_oss_src_set_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_DEVICE: - if (src->device) - g_free (src->device); + g_free (src->device); src->device = g_value_dup_string (value); break; default: -- cgit v1.2.3