fix 1 crash.

This commit is contained in:
Dana Jansens 2007-06-13 11:17:02 +00:00
parent eb6a2e9c4b
commit 1890e3b0e7

View file

@ -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 */