diff options
-rw-r--r-- | cairo.c | 2 | ||||
-rw-r--r-- | group.c | 4 | ||||
-rw-r--r-- | tab.c | 3 |
3 files changed, 9 insertions, 0 deletions
@@ -98,6 +98,8 @@ groupCreateCairoLayer (CompScreen *s, layer = malloc (sizeof (GroupCairoLayer)); + if (!layer) + return NULL; layer->surface = NULL; layer->cairo = NULL; @@ -639,8 +639,12 @@ groupAddWindowToGroup (CompWindow *w, { /* create new group */ GroupSelection *g = malloc (sizeof (GroupSelection)); + if (!g) + return; g->windows = malloc (sizeof (CompWindow *)); + if (!g->windows) + return; g->windows[0] = w; g->screen = w->screen; @@ -2175,6 +2175,9 @@ void groupCreateSlot (GroupSelection *group, return; slot = malloc (sizeof (GroupTabBarSlot)); + if (!slot) + return; + slot->window = w; slot->region = XCreateRegion (); |