rdp: Switch to xzalloc for backend allocation
We're giving up on trying to recover from these kinds of failures. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
00de8ceff7
commit
e4895fa5fc
@ -39,6 +39,7 @@
|
||||
#include <winpr/ssl.h>
|
||||
|
||||
#include "shared/timespec-util.h"
|
||||
#include "shared/xalloc.h"
|
||||
#include <libweston/libweston.h>
|
||||
#include <libweston/backend-rdp.h>
|
||||
#include "pixman-renderer.h"
|
||||
@ -1651,10 +1652,7 @@ rdp_backend_create(struct weston_compositor *compositor,
|
||||
|
||||
struct weston_head *base, *next;
|
||||
|
||||
b = zalloc(sizeof *b);
|
||||
if (b == NULL)
|
||||
return NULL;
|
||||
|
||||
b = xzalloc(sizeof *b);
|
||||
b->compositor_tid = gettid();
|
||||
b->compositor = compositor;
|
||||
b->base.destroy = rdp_destroy;
|
||||
|
Loading…
Reference in New Issue
Block a user