diff options
author | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> | 2014-06-03 15:12:34 +0900 |
---|---|---|
committer | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> | 2014-06-03 18:02:10 +0900 |
commit | 9ed6b82fa6d00d8df531d0a501264a10f0d27e9a (patch) | |
tree | 45e02c3f0233636709600bef208fe2c0604407e8 | |
parent | 013948d48c67aa010afc9dfbd6098c447a1effcd (diff) | |
download | weston-9ed6b82fa6d00d8df531d0a501264a10f0d27e9a.tar.gz |
Clear notification callbacks when ivi_layout_surface destroyed.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
-rw-r--r-- | ivi-shell/ivi-layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index 68388602..8a744bba 100644 --- a/ivi-shell/ivi-layout.c +++ b/ivi-shell/ivi-layout.c @@ -1357,6 +1357,7 @@ ivi_layout_surfaceRemove(struct ivi_layout_surface *ivisurf) wl_list_remove(&ivisurf->link); } remove_ordersurface_from_layer(ivisurf); + ivi_layout_surfaceRemoveNotification(ivisurf); wl_list_for_each(notification, &layout->surface_notification.list_remove, link) { @@ -2676,6 +2677,8 @@ ivi_layout_surfaceSetNativeContent(struct weston_surface *surface, (*(ivisurf->content_observer.callback))(ivisurf, 0, ivisurf->content_observer.userdata); } + + ivi_layout_surfaceRemoveNotification(ivisurf); return 0; } |