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