ecore_wl2_display: move wl_display_dispatch_pending before condition check. accepted/tizen/unified/20200824.134432 submit/tizen/20200823.213148
authorHosang Kim <hosang12.kim@samsung.com>
Wed, 19 Aug 2020 11:50:31 +0000 (11:50 +0000)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 23 Aug 2020 21:08:13 +0000 (06:08 +0900)
commitaf8ce1a4735c83beca4ad69a06c5fa55f595b14b
tree1348e332fbd09412c988aa4cb66ead8980614ebb
parentce8b30d9539c16ea892443b41366077231263057
ecore_wl2_display: move wl_display_dispatch_pending before condition check.

Sometimes display ref count is not zero after wl_display_dispatch_pending.

For example, wl_data_source_listener's callback is called by wl_display_dispatch_pending.
Display ref count is not zero but display is cleaned up, it makes double free corruption.

Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D12109
src/lib/ecore_wl2/ecore_wl2_display.c