[gnome-settings-daemon/benzea/nightlight-source-leak: 8/8] color: Don't leak night light recheck GSource
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/benzea/nightlight-source-leak: 8/8] color: Don't leak night light recheck GSource
- Date: Thu, 27 Sep 2018 08:51:37 +0000 (UTC)
commit d5d525700bfe377e71762dd2398ecb5e12dcdef2
Author: Benjamin Berg <bberg redhat com>
Date: Thu Sep 27 09:35:32 2018 +0200
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
plugins/color/gsd-night-light.c | 1 +
1 file changed, 1 insertion(+)
---
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]