summaryrefslogtreecommitdiff
path: root/src/gpm-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpm-manager.c')
-rw-r--r--src/gpm-manager.c5
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);