projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a6c48d
)
window.c: Use xmalloc for frame_create()
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 25 Jul 2013 23:25:15 +0000
(16:25 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 25 Jul 2013 23:25:15 +0000
(16:25 -0700)
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index dd9ea7ab9d9481865faa9de58e09ac7918a48013..0590090f024d938a7ff1355d7a4f860c4c3983e9 100644
(file)
--- 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 =
x
malloc(sizeof *frame);
memset(frame, 0, sizeof *frame);
frame->widget = window_add_widget(window, frame);