projects
/
platform
/
upstream
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d201aab
)
wayland-client: add NULL check
author
Junkyeong Kim
<jk0430.kim@samsung.com>
Mon, 20 Jul 2020 08:59:17 +0000
(17:59 +0900)
committer
Junkyeong Kim
<jk0430.kim@samsung.com>
Thu, 16 Feb 2023 10:11:21 +0000
(19:11 +0900)
Change-Id: Iceba83f91a51ca000c3868379f6bf3b189610344
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/wayland-client.c
patch
|
blob
|
history
diff --git
a/src/wayland-client.c
b/src/wayland-client.c
index
eac0a1e
..
26158c9
100644
(file)
--- a/
src/wayland-client.c
+++ b/
src/wayland-client.c
@@
-1580,7
+1580,8
@@
wl_display_disconnect(struct wl_display *display)
pthread_mutex_lock(&display->mutex);
thread_data = get_thread_data(display);
- destroy_thread_data(thread_data);
+ if (thread_data)
+ destroy_thread_data(thread_data);
pthread_key_delete(display->thread_data_key);
wl_connection_destroy(display->connection);