From: Junkyeong Kim Date: Mon, 18 Apr 2016 07:35:05 +0000 (+0900) Subject: erase dereference of null code X-Git-Tag: accepted/tizen/common/20160419.143123~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61d122abfd323a39d4ed597ab625aa2cb2c913f6;p=platform%2Fcore%2Fuifw%2Flibtdm.git erase dereference of null code Change-Id: I3726b755d568255e3a82da65ada40828a40414b3 Signed-off-by: Junkyeong Kim --- diff --git a/src/tdm_event_loop.c b/src/tdm_event_loop.c index f653dbe..e0791ab 100644 --- a/src/tdm_event_loop.c +++ b/src/tdm_event_loop.c @@ -112,14 +112,7 @@ tdm_event_loop_init(tdm_private_display *private_display) free(private_loop); return TDM_ERROR_OUT_OF_MEMORY; } - private_loop->wl_loop = wl_display_get_event_loop(private_loop->wl_display); - if (!private_loop->wl_loop) { - TDM_ERR("no event loop"); - wl_display_destroy(private_loop->wl_display); - free(private_loop); - return TDM_ERROR_OPERATION_FAILED; - } ret = tdm_server_init(private_loop); if (ret != TDM_ERROR_NONE) {