summaryrefslogtreecommitdiff
path: root/plugins/sound
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2010-11-22 22:43:23 -0500
committerWilliam Jon McCann <jmccann@redhat.com>2010-11-22 22:43:23 -0500
commitb9c73d7e1d5a9c9dc350dcd751e54e757c7a1dcf (patch)
treed2dcc8c5884178b9c13dd9cf88232464d87474bb /plugins/sound
parent6d486385c245c758186c9ecc786635e3a76ab49b (diff)
downloadgnome-settings-daemon-b9c73d7e1d5a9c9dc350dcd751e54e757c7a1dcf.tar.gz
various: Don't unref null objects in _stop()
WTF people let's try not to be so sloppy.
Diffstat (limited to 'plugins/sound')
-rw-r--r--plugins/sound/gsd-sound-manager.c8
1 files changed, 4 insertions, 4 deletions
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);