diff options
author | monsta <[email protected]> | 2015-11-12 12:02:14 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-11-30 14:56:53 +0300 |
commit | 8b30ebf59492dca891a847b1ba4cf23edb693266 (patch) | |
tree | c649ec1ccb4746fbf53dc802f34cd6eb67695bd4 /savers/floaters.c | |
parent | 43cd79f4d620167bd72736a811dc4d6b627b124f (diff) | |
download | mate-screensaver-8b30ebf59492dca891a847b1ba4cf23edb693266.tar.bz2 mate-screensaver-8b30ebf59492dca891a847b1ba4cf23edb693266.tar.xz |
fix warnings due to wrong id passed to g_source_remove
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); |