Free transition before return. We don't need to use
layout_transition_destroy, because transition was not registered yet.

Signed-off-by: Lucas Tanure <tan...@linux.com>
---
 ivi-shell/ivi-layout-transition.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ivi-shell/ivi-layout-transition.c 
b/ivi-shell/ivi-layout-transition.c
index d12a8f4..a042976 100644
--- a/ivi-shell/ivi-layout-transition.c
+++ b/ivi-shell/ivi-layout-transition.c
@@ -697,6 +697,7 @@ create_move_layer_transition(
        data = malloc(sizeof(*data));
        if (data == NULL) {
                weston_log("%s: memory allocation fails\n", __func__);
+               free(transition);
                return NULL;
        }
 
-- 
2.5.3

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to