ivi-shell: fix ivi_shell_surface lifetime
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Mon, 22 Jun 2015 06:31:08 +0000 (15:31 +0900)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 23 Jun 2015 12:57:15 +0000 (15:57 +0300)
commit680984234a4462a3b1949559d406eefb06e2bd3b
treeca9378d68b29f14350793c315ca3c79d74f0d557
parent6f6c9389967d0fa2e96cd091805682124f554293
ivi-shell: fix ivi_shell_surface lifetime

ivi_shell_surface lifetime shall follow the ivi_surface protocol object
lifetime, and frees the ivi-id by destroying the ivi_layout_surface
from both wl_surface and ivi_surface destruction as the protocol specifies.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
ivi-shell/ivi-shell.c