mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-04-05 16:00:41 +02:00
ivi-layout-transition: Fix potential leak of memory pointed to by transition
Check if layout_transition_register worked, otherwise destroy transition Signed-off-by: Lucas Tanure <tanure@linux.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
9b5fe423bf
commit
96db07741f
1 changed files with 2 additions and 1 deletions
|
|
@ -511,7 +511,8 @@ create_visibility_transition(struct ivi_layout_surface *surface,
|
|||
destroy_func,
|
||||
duration);
|
||||
|
||||
layout_transition_register(transition);
|
||||
if(!layout_transition_register(transition))
|
||||
layout_transition_destroy(transition);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue