summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2018-09-27 09:35:32 +0200
committerCarlos Garnacho <mrgarnacho@gmail.com>2018-09-27 08:51:24 +0000
commitd5d525700bfe377e71762dd2398ecb5e12dcdef2 (patch)
tree6dab49b2d6a18a7aadf13c400334cea6bd8f3f98
parent194401c496aad987ab67b84c646652b3f28ed4fd (diff)
downloadgnome-settings-daemon-d5d525700bfe377e71762dd2398ecb5e12dcdef2.tar.gz
color: Don't leak night light recheck GSource
We have always been leaking the GSource which is re-created every minute to check the current night light state. Unfortunately, now that we are correctly using the timerfd, we not only leak some memory but also the file descriptor, causing major issues. Fixes #91
-rw-r--r--plugins/color/gsd-night-light.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/color/gsd-night-light.c b/plugins/color/gsd-night-light.c
index a28a0e0e..2a19241d 100644
--- a/plugins/color/gsd-night-light.c
+++ b/plugins/color/gsd-night-light.c
@@ -423,6 +423,7 @@ poll_timeout_destroy (GsdNightLight *self)
return;
g_source_destroy (self->source);
+ g_source_unref (self->source);
self->source = NULL;
}