diff options
Diffstat (limited to 'savers')
-rw-r--r-- | savers/floaters.c | 8 | ||||
-rw-r--r-- | savers/gste-slideshow.c | 1 |
2 files changed, 7 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); diff --git a/savers/gste-slideshow.c b/savers/gste-slideshow.c index d515b0b..887ec87 100644 --- a/savers/gste-slideshow.c +++ b/savers/gste-slideshow.c @@ -1072,6 +1072,7 @@ gste_slideshow_finalize (GObject *object) if (show->priv->results_pull_id > 0) { g_source_remove (show->priv->results_pull_id); + show->priv->results_pull_id = 0; } if (show->priv->results_q != NULL) |