libweston: fix animation crash when a view has no output assigned
authorArmin Krezović <krezovic.armin@gmail.com>
Thu, 11 Aug 2016 13:49:58 +0000 (15:49 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 12 Aug 2016 10:28:30 +0000 (13:28 +0300)
commit75e7106403143944e9dc7e0efc7a53127d582574
tree95da2ddbea3c8c460e604cf87ffd34b7a4cc4617
parent96c205a5097404b4cfaaa44a8c618cc07b02abe0
libweston: fix animation crash when a view has no output assigned

This fixes a crash in animation related code where weston
would crash in weston_view_animation_create when the
view had no output assigned.

This makes sure that animation gets created and released
immediately, so done and reset callbacks still get called
properly.

Signed-off-by: Armin Krezović <krezovic.armin@gmail.com>
[Pekka: put a '{' on the right line.]
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
libweston/animation.c