From 8eeb30b9d1d72e5b43c62dfad728f4a992aea4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 25 Jul 2013 16:25:15 -0700 Subject: [PATCH] window.c: Use xmalloc for frame_create() --- clients/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index dd9ea7ab..0590090f 100644 --- a/clients/window.c +++ b/clients/window.c @@ -2603,7 +2603,7 @@ frame_create(struct window *window, void *data) { struct frame *frame; - frame = malloc(sizeof *frame); + frame = xmalloc(sizeof *frame); memset(frame, 0, sizeof *frame); frame->widget = window_add_widget(window, frame);