From: Junkyeong Kim Date: Tue, 15 Oct 2024 23:44:32 +0000 (+0900) Subject: e_hwc: Add null checking condition X-Git-Tag: accepted/tizen/unified/20241017.114815~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F40%2F319140%2F2;p=platform%2Fupstream%2Fenlightenment.git e_hwc: Add null checking condition Change-Id: Ieb4044028fa82dbec329f2f22732f63998af3268 --- diff --git a/src/bin/displaymgr/e_hwc.c b/src/bin/displaymgr/e_hwc.c index 5294617fa2..51dde8ab10 100644 --- a/src/bin/displaymgr/e_hwc.c +++ b/src/bin/displaymgr/e_hwc.c @@ -139,7 +139,8 @@ _e_hwc_tbm_surface_queue_alloc(void *data, int w, int h) tbm_surface_queue_reset(tqueue, w, h, tbm_surface_queue_get_format(tqueue)); hwc->target_buffer_queue = tqueue; - e_comp_screen->tqueue = tqueue; + if (e_comp_screen) + e_comp_screen->tqueue = tqueue; EHINF("The tqueue(%p, %dx%d) is created.", hwc, tqueue, queue_w, queue_h);