diff options
Diffstat (limited to 'savers/floaters.c')
-rw-r--r-- | savers/floaters.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/savers/floaters.c b/savers/floaters.c index c2f4bc4..9eb7897 100644 --- a/savers/floaters.c +++ b/savers/floaters.c @@ -910,11 +910,15 @@ screen_saver_free (ScreenSaver *screen_saver) g_hash_table_destroy (screen_saver->cached_sources); - if (screen_saver->state_update_timeout_id != 0) + if (screen_saver->state_update_timeout_id != 0) { g_source_remove (screen_saver->state_update_timeout_id); + screen_saver->state_update_timeout_id = 0; + } - if (screen_saver->stats_update_timeout_id != 0) + if (screen_saver->stats_update_timeout_id != 0) { g_source_remove (screen_saver->stats_update_timeout_id); + screen_saver->stats_update_timeout_id = 0; + } screen_saver_destroy_floaters (screen_saver); |