diff options
author | Brian Lovin <brian.j.lovin@intel.com> | 2013-08-07 15:34:59 -0700 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-08-07 16:27:33 -0700 |
commit | bc91926e0cf2abe875c404b111dd08ad507d91a1 (patch) | |
tree | 1daee7d5ce38da5bcd9d11cd95af9c4e9292e63c /clients/resizor.c | |
parent | 1c4f163c6d74c8aab69d2dbb9a03dc0e0e80f374 (diff) | |
download | weston-bc91926e0cf2abe875c404b111dd08ad507d91a1.tar.gz |
clients: use xmalloc in more places
For the clients continue to use xmalloc() to simplify OOM-handling.
Signed-off-by: Brian Lovin <brian.j.lovin@intel.com>
Diffstat (limited to 'clients/resizor.c')
-rw-r--r-- | clients/resizor.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clients/resizor.c b/clients/resizor.c index 27879a0e..49b28175 100644 --- a/clients/resizor.c +++ b/clients/resizor.c @@ -233,9 +233,7 @@ resizor_create(struct display *display) { struct resizor *resizor; - resizor = malloc(sizeof *resizor); - if (resizor == NULL) - return resizor; + resizor = xmalloc(sizeof *resizor); memset(resizor, 0, sizeof *resizor); resizor->window = window_create(display); |