[Xfce4-commits] [apps/xfce4-screensaver] 01/01: Fix crash when scrolling through available themes quickly

noreply at xfce.org noreply at xfce.org
Sun Nov 18 14:14:25 CET 2018


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

b   l   u   e   s   a   b   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 apps/xfce4-screensaver.

commit d1bc7ce7e63a5f42bea762a6c612024b9d858510
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sun Nov 18 08:14:20 2018 -0500

    Fix crash when scrolling through available themes quickly
---
 src/debug-screensaver.sh | 2 +-
 src/gs-prefs.c           | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/debug-screensaver.sh b/src/debug-screensaver.sh
index a067d4e..65c56a5 100755
--- a/src/debug-screensaver.sh
+++ b/src/debug-screensaver.sh
@@ -33,7 +33,7 @@ export G_DEBUG=fatal_criticals
 xfce4-screensaver-command --exit
 
 # run the daemon in the debugger
-#gdb --args xfce4-screensaver --no-daemon --debug --sync
+#gdb --args xfce4-screensaver --no-daemon --debug
 
 # or if that isn't helpful just get the debug output
 #xfce4-screensaver --no-daemon --debug > /tmp/gs-debug-log.txt 2>&1
diff --git a/src/gs-prefs.c b/src/gs-prefs.c
index a6ed46e..20aa91f 100644
--- a/src/gs-prefs.c
+++ b/src/gs-prefs.c
@@ -154,6 +154,7 @@ _gs_prefs_set_themes (GSPrefs  *prefs,
     if (prefs->themes) {
         g_slist_foreach (prefs->themes, (GFunc)g_free, NULL);
         g_slist_free (prefs->themes);
+        prefs->themes = NULL;
     }
 
     if (values == NULL)
@@ -161,7 +162,7 @@ _gs_prefs_set_themes (GSPrefs  *prefs,
 
     /* take ownership of the list */
     prefs->themes = NULL;
-        for (i=0; values[i] != NULL; i++)
+    for (i=0; values[i] != NULL; i++)
         prefs->themes = g_slist_append (prefs->themes, g_strdup (values[i]));
 }
 

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


More information about the Xfce4-commits mailing list