sunaudiosrc: remove unnecessary NULL checks before g_free()

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-11-14 21:43:24 -08:00
parent 678e45a8f7
commit e882989201

View file

@ -177,8 +177,7 @@ gst_sunaudiosrc_set_property (GObject * object, guint prop_id,
switch (prop_id) {
case PROP_DEVICE:
if (sunaudiosrc->device)
g_free (sunaudiosrc->device);
g_free (sunaudiosrc->device);
sunaudiosrc->device = g_value_dup_string (value);
break;
default: