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-manager.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-manager.c')
-rw-r--r-- | src/gpm-manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c index f6c498e..050d3ec 100644 --- a/src/gpm-manager.c +++ b/src/gpm-manager.c @@ -1945,8 +1945,11 @@ gpm_manager_finalize (GObject *object) gpm_manager_notify_close (manager, manager->priv->notification_discharging); if (manager->priv->notification_fully_charged != NULL) gpm_manager_notify_close (manager, manager->priv->notification_fully_charged); - if (manager->priv->critical_alert_timeout_id != 0) + + if (manager->priv->critical_alert_timeout_id != 0) { g_source_remove (manager->priv->critical_alert_timeout_id); + manager->priv->critical_alert_timeout_id = 0; + } g_object_unref (manager->priv->settings); g_object_unref (manager->priv->dpms); |