From 1890e3b0e7562a8597f9f9b54744519306858a06 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 13 Jun 2007 11:17:02 +0000 Subject: [PATCH] fix 1 crash. --- openbox/screen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openbox/screen.c b/openbox/screen.c index 0563148e..24fa84ed 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -1098,8 +1098,7 @@ void screen_install_colormap(ObClient *client, gboolean install) monitor_area[i].x, monitor_area[i].width)) #define RESET_STRUT_LIST(sl) \ - {for (i = 0; sl[i]; ++i) \ - g_slist_free(sl[i]); \ + {if (sl) for (i = 0; sl[i]; ++i) g_slist_free(sl[i]); \ sl = g_renew(GSList*, sl, screen_num_desktops + 1); \ sl[screen_num_desktops] = NULL;} /* null terminated */ -- 2.45.2