diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-14 21:45:29 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-15 01:43:08 -0800 |
commit | 492e917a6d713df4474271a2f212fdb264ac02e2 (patch) | |
tree | cc9a899e2c8c5d860d7d5cb6e3fceb6a1d4ebe3e | |
parent | e88298920159d02107dcb4a6b984a50d032d2a27 (diff) |
osssrc: remove unnecessary NULL check before g_free()
-rw-r--r-- | sys/oss/gstosssrc.c | 3 |
1 files changed, 1 insertions, 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: |