mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 05:28:05 +02:00
window.c: Use xmalloc for frame_create()
This commit is contained in:
parent
9a6c48d0fd
commit
8eeb30b9d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue