diff options
Diffstat (limited to 'libmatemixer/matemixer-stream-toggle.c')
-rw-r--r-- | libmatemixer/matemixer-stream-toggle.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libmatemixer/matemixer-stream-toggle.c b/libmatemixer/matemixer-stream-toggle.c index 70c829e..12582cb 100644 --- a/libmatemixer/matemixer-stream-toggle.c +++ b/libmatemixer/matemixer-stream-toggle.c @@ -199,13 +199,9 @@ mate_mixer_stream_toggle_dispose (GObject *object) toggle = MATE_MIXER_STREAM_TOGGLE (object); - if (toggle->priv->options != NULL) { - g_list_free (toggle->priv->options); - toggle->priv->options = NULL; - } - g_clear_object (&toggle->priv->on); g_clear_object (&toggle->priv->off); + g_clear_pointer (&toggle->priv->options, g_list_free); G_OBJECT_CLASS (mate_mixer_stream_toggle_parent_class)->dispose (object); } |