summaryrefslogtreecommitdiff
path: root/savers
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-11-12 12:02:14 +0300
committermonsta <[email protected]>2015-11-30 14:56:53 +0300
commit8b30ebf59492dca891a847b1ba4cf23edb693266 (patch)
treec649ec1ccb4746fbf53dc802f34cd6eb67695bd4 /savers
parent43cd79f4d620167bd72736a811dc4d6b627b124f (diff)
downloadmate-screensaver-8b30ebf59492dca891a847b1ba4cf23edb693266.tar.bz2
mate-screensaver-8b30ebf59492dca891a847b1ba4cf23edb693266.tar.xz
fix warnings due to wrong id passed to g_source_remove
Diffstat (limited to 'savers')
-rw-r--r--savers/floaters.c8
-rw-r--r--savers/gste-slideshow.c1
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)