ivi-shell: Remove all surface transitions when it is being removed.
authorMateusz Polrola <mateuszx.potrola@intel.com>
Wed, 9 Mar 2016 09:13:26 +0000 (09:13 +0000)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 15 Mar 2016 12:12:06 +0000 (14:12 +0200)
commitdada6e3b79aa9219f431a212877ab5391ef72d13
tree849dcc3b0744cc1756eb4766be3db5633549fb14
parentc6a55dbf0415963ee303d68b254020d5d04e05d2
ivi-shell: Remove all surface transitions when it is being removed.

If surface transitions are not removed when surface is being removed, it
can lead to crash later when transition will finish, as it will try to
reference already freed memory.
This change exposes function that can remove all existing transitions
for given surface and it is being called during surface cleanup.

Signed-off-by: Mateusz Polrola <mateuszx.potrola@intel.com>
Reviewed-by: Emre Ucan <eucan@de.adit-jv.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
ivi-shell/ivi-layout-private.h
ivi-shell/ivi-layout-transition.c
ivi-shell/ivi-layout.c