projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65c5067
)
Add NULL check for e_comp->pointer
11/317511/1
author
jinbong.lee
<jinbong.lee@samsung.com>
Tue, 10 Sep 2024 10:54:25 +0000
(19:54 +0900)
committer
Tizen Window System
<tizen.windowsystem@gmail.com>
Wed, 11 Sep 2024 06:16:00 +0000
(15:16 +0900)
- NULL check is added for preventing potential bug
Change-Id: Idf969062ae14472301bd18fe2786c594a7f9ed17
src/bin/windowmgr/e_dnd.c
patch
|
blob
|
history
diff --git
a/src/bin/windowmgr/e_dnd.c
b/src/bin/windowmgr/e_dnd.c
index 038f96036517d558e6d26598ad5730dd01ddc7a3..7ce32206a8e4e2072432b2be45906f338013554f 100644
(file)
--- a/
src/bin/windowmgr/e_dnd.c
+++ b/
src/bin/windowmgr/e_dnd.c
@@
-116,6
+116,9
@@
_e_drag_finalize(E_Drag *drag, int x, int y)
E_Pointer* comp_pointer;
const int color[4] = {0, 0, 0, 0};
+ comp_pointer = e_comp_pointer_get();
+ if (!comp_pointer) return 0;
+
if (_drag_win) return 0;
_drag_win = e_comp_ee_win_get();
if (!e_comp_grab_input(1, 1))
@@
-132,7
+135,6
@@
_e_drag_finalize(E_Drag *drag, int x, int y)
e_drag_view_set(drag, e_view_rect_view_get(rect));
}
- comp_pointer = e_comp_pointer_get();
drag->angle = comp_pointer->rotation;
e_drag_move(drag, x, y);
e_drag_resize(drag, drag->w, drag->h);