e_comp_wl: fix segfault in case parent's surface is destroyed before subsurface is...
authorBoram Park <boram1288.park@samsung.com>
Tue, 12 May 2015 18:43:00 +0000 (14:43 -0400)
committerChris Michael <cp.michael@samsung.com>
Tue, 12 May 2015 18:43:00 +0000 (14:43 -0400)
commit7a078ba99bd911c766462f005fccc28997541331
treede749c99497e6756210884cc943e66d9a78eb7eb
parent82116f63ab76c25325264c03798766b347417110
e_comp_wl: fix segfault in case parent's surface is destroyed before subsurface is destroyed

Summary:
A parent surface can be destroyed. In this case, ec->comp_data->sub.data->parent has
a wrong address which has already destroyed. Then, it occurs segmentation fault.
To avoid segfault, ec->comp_data->sub.data->parent should be NULL when a parent surface
is destroyed.

Signed-off-by: Boram Park <boram1288.park@samsung.com>
Test Plan: Run attached test program(subsurface)

Reviewers: gwanglim, cedric, devilhorns, zmike

Reviewed By: devilhorns, zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2484
src/bin/e_comp_wl.c