[Xfce4-commits] [xfce/xfdesktop] 01/01: Avoid timer leak when docking-undocking monitors (Bug #13887)

noreply at xfce.org noreply at xfce.org
Tue May 14 03:37:22 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfdesktop.

commit ffc8740e7ddd576efb51679cd7639535ef217e3d
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 c85ddcf..abc3e0b 100644
--- a/src/xfce-backdrop.c
+++ b/src/xfce-backdrop.c
@@ -361,6 +361,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