sunaudiosrc: remove unnecessary NULL checks before g_free()
This commit is contained in:
parent
678e45a8f7
commit
e882989201
@ -177,7 +177,6 @@ gst_sunaudiosrc_set_property (GObject * object, guint prop_id,
|
|||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_DEVICE:
|
case PROP_DEVICE:
|
||||||
if (sunaudiosrc->device)
|
|
||||||
g_free (sunaudiosrc->device);
|
g_free (sunaudiosrc->device);
|
||||||
sunaudiosrc->device = g_value_dup_string (value);
|
sunaudiosrc->device = g_value_dup_string (value);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user