putsurface_wayland: fix segmentation fault in multithreads

Otherwise thread1 will dereference a NULL pointer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
This commit is contained in:
Xiang, Haihao 2017-06-15 23:58:08 +08:00
parent d7da46e6c0
commit 89d1a17a2f
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ create_window(void *win_display, int x, int y, int width, int height)
drawable2 = malloc(sizeof(*drawable2));
assert(drawable2);
drawable2->display = display;
drawable1->surface = surface2;
drawable2->surface = surface2;
drawable2->redraw_pending = 0;
/* global out */