[Xfce4-commits] [xfce/xfdesktop] 01/01: Fix memory leak when monitors change (Bug#14844)

noreply at xfce.org noreply at xfce.org
Fri May 17 18:59:42 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 9b2dc2f71f360290e1b0d15cb68d3dd5f91d2bbb
Author: Andre Miranda <andreldm at xfce.org>
Date:   Fri May 17 13:53:51 2019 -0300

    Fix memory leak when monitors change (Bug#14844)
---
 src/xfce-workspace.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/xfce-workspace.c b/src/xfce-workspace.c
index 32cca9f..69b972f 100644
--- a/src/xfce-workspace.c
+++ b/src/xfce-workspace.c
@@ -706,13 +706,10 @@ static void
 xfce_workspace_remove_backdrops(XfceWorkspace *workspace)
 {
     guint i;
-    guint n_monitors;
 
     g_return_if_fail(XFCE_IS_WORKSPACE(workspace));
 
-    n_monitors = gdk_display_get_n_monitors(gdk_screen_get_display(workspace->priv->gscreen));
-
-    for(i = 0; i < n_monitors && i < workspace->priv->nbackdrops; ++i) {
+    for(i = 0; i < workspace->priv->nbackdrops; ++i) {
         xfce_workspace_disconnect_backdrop_settings(workspace,
                                                     workspace->priv->backdrops[i],
                                                     i);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list