projects
/
platform
/
core
/
uifw
/
libds-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ee25d4
)
dpms: add null checking of 'dpms->res' variable
08/281908/1
author
duna.oh
<duna.oh@samsung.com>
Thu, 22 Sep 2022 01:59:03 +0000
(10:59 +0900)
committer
Tizen Window System
<tizen.windowsystem@gmail.com>
Fri, 23 Sep 2022 06:03:46 +0000
(15:03 +0900)
dpms->res could be null if no client binds to dpms interface
Change-Id: I4bb631903190ed9a892857b24ea0eb4776b341c5
src/dpms/dpms.c
patch
|
blob
|
history
diff --git
a/src/dpms/dpms.c
b/src/dpms/dpms.c
index
833005f
..
cec0dc2
100644
(file)
--- a/
src/dpms/dpms.c
+++ b/
src/dpms/dpms.c
@@
-110,7
+110,8
@@
dpms_handle_display_destroy(struct wl_listener *listener, void *data)
wl_signal_emit(&dpms->events.destroy, dpms);
wl_list_remove(&dpms->destroy.link);
- wl_resource_set_user_data(dpms->res, NULL);
+ if (dpms->res)
+ wl_resource_set_user_data(dpms->res, NULL);
wl_global_destroy(dpms->global);
free(dpms);
}