summaryrefslogtreecommitdiff
path: root/group.c
diff options
context:
space:
mode:
Diffstat (limited to 'group.c')
-rw-r--r--group.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/group.c b/group.c
index 8ffd302..e946cd4 100644
--- a/group.c
+++ b/group.c
@@ -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;