diff options
author | monsta <[email protected]> | 2015-11-12 13:27:10 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-11-30 10:45:25 +0300 |
commit | b6c8f86bd32139b22513408bd402d1840ea13302 (patch) | |
tree | 069599bb3bcfe2ece59bb61578a05e271696eb4b /src/gpm-dpms.c | |
parent | b1c76b5a6639ff268d557c3e4b7f03ea9d9db677 (diff) | |
download | mate-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.c | 4 |
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); } |