mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
sunaudiosrc: remove unnecessary NULL checks before g_free()
This commit is contained in:
parent
678e45a8f7
commit
e882989201
1 changed files with 1 additions and 2 deletions
|
@ -177,8 +177,7 @@ 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;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue