From b9c73d7e1d5a9c9dc350dcd751e54e757c7a1dcf Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Mon, 22 Nov 2010 22:43:23 -0500 Subject: various: Don't unref null objects in _stop() WTF people let's try not to be so sloppy. --- plugins/sound/gsd-sound-manager.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/sound') diff --git a/plugins/sound/gsd-sound-manager.c b/plugins/sound/gsd-sound-manager.c index 221418cc..85ebade6 100644 --- a/plugins/sound/gsd-sound-manager.c +++ b/plugins/sound/gsd-sound-manager.c @@ -316,10 +316,10 @@ gsd_sound_manager_stop (GsdSoundManager *manager) g_debug ("Stopping sound manager"); #ifdef HAVE_PULSE - if (manager->priv->settings != NULL) { - g_object_unref (manager->priv->settings); - manager->priv->settings = NULL; - } + if (manager->priv->settings != NULL) { + g_object_unref (manager->priv->settings); + manager->priv->settings = NULL; + } if (manager->priv->timeout) { g_source_remove (manager->priv->timeout); -- cgit v1.2.1