summaryrefslogtreecommitdiff
path: root/src/gpm-dpms.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-11-12 13:27:10 +0300
committermonsta <[email protected]>2015-11-30 10:45:25 +0300
commitb6c8f86bd32139b22513408bd402d1840ea13302 (patch)
tree069599bb3bcfe2ece59bb61578a05e271696eb4b /src/gpm-dpms.c
parentb1c76b5a6639ff268d557c3e4b7f03ea9d9db677 (diff)
downloadmate-power-manager-b6c8f86bd32139b22513408bd402d1840ea13302.tar.bz2
mate-power-manager-b6c8f86bd32139b22513408bd402d1840ea13302.tar.xz
fix warnings due to wrong id passed to g_source_remove
Diffstat (limited to 'src/gpm-dpms.c')
-rw-r--r--src/gpm-dpms.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpm-dpms.c b/src/gpm-dpms.c
index 8eaf704..644ffe7 100644
--- a/src/gpm-dpms.c
+++ b/src/gpm-dpms.c
@@ -321,8 +321,10 @@ gpm_dpms_finalize (GObject *object)
g_return_if_fail (dpms->priv != NULL);
- if (dpms->priv->timer_id != 0)
+ if (dpms->priv->timer_id != 0) {
g_source_remove (dpms->priv->timer_id);
+ dpms->priv->timer_id = 0;
+ }
G_OBJECT_CLASS (gpm_dpms_parent_class)->finalize (object);
}