summaryrefslogtreecommitdiff
path: root/src/gpm-dpms.c
diff options
context:
space:
mode:
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);
}