diff options
Diffstat (limited to 'backends/pulse/pulse-port-switch.c')
-rw-r--r-- | backends/pulse/pulse-port-switch.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/backends/pulse/pulse-port-switch.c b/backends/pulse/pulse-port-switch.c index 1f4ce67..c024d03 100644 --- a/backends/pulse/pulse-port-switch.c +++ b/backends/pulse/pulse-port-switch.c @@ -79,10 +79,8 @@ pulse_port_switch_dispose (GObject *object) swtch = PULSE_PORT_SWITCH (object); - if (swtch->priv->ports != NULL) { - g_list_free_full (swtch->priv->ports, g_object_unref); - swtch->priv->ports = NULL; - } + _mate_mixer_clear_object_list (&swtch->priv->ports); + G_OBJECT_CLASS (pulse_port_switch_parent_class)->dispose (object); } |