[Xfce4-commits] [xfce/xfdesktop] 01/02: Avoid timer leak when docking-undocking monitors (Bug #13887)
noreply at xfce.org
noreply at xfce.org
Tue Jun 4 21:43:42 CEST 2019
This is an automated email from the git hooks/post-receive script.
a l e x p u s h e d a c o m m i t t o b r a n c h x f c e - 4 . 1 2
in repository xfce/xfdesktop.
commit 530102185e953711edf42b6816c5e049c3adad3e
Author: Andre Miranda <andreldm at xfce.org>
Date: Mon May 13 22:31:44 2019 -0300
Avoid timer leak when docking-undocking monitors (Bug #13887)
---
src/xfce-backdrop.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/xfce-backdrop.c b/src/xfce-backdrop.c
index 0344566..998d599 100644
--- a/src/xfce-backdrop.c
+++ b/src/xfce-backdrop.c
@@ -368,6 +368,11 @@ cb_xfce_backdrop_image_files_changed(GFileMonitor *monitor,
backdrop->priv->image_files = g_list_delete_link(backdrop->priv->image_files, item);
g_free(changed_file);
+
+ if (backdrop->priv->cycle_timer_id) {
+ g_source_remove(backdrop->priv->cycle_timer_id);
+ backdrop->priv->cycle_timer_id = 0;
+ }
break;
case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT:
changed_file = g_file_get_path(file);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list