summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmre Ucan <eucan@de.adit-jv.com>2016-03-29 15:08:53 +0200
committerWataru Natsume <wataru_natsume@xddp.denso.co.jp>2016-04-07 19:42:13 +0900
commit1684ec92497eaee337a0d4e8c67c30f9d60d82bb (patch)
treeaf31f335a2a566dcd97d650bc18234a1c24ae5ec
parent7e83b9984383f5107d8068705ee14ba4fd8f49a8 (diff)
downloadwayland-ivi-extension-1684ec92497eaee337a0d4e8c67c30f9d60d82bb.tar.gz
ivi-controller: fix memory leak at update_surface_prop
ivi_layout_get_get_layers_under_surface allocates memory. It is responsibility of the caller to free this memory, as it is stated in ivi-layout.c Therefore, the memory should be freed in the end of the function Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
-rw-r--r--weston-ivi-shell/src/ivi-controller-impl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/weston-ivi-shell/src/ivi-controller-impl.c b/weston-ivi-shell/src/ivi-controller-impl.c
index b7a9c48..5629234 100644
--- a/weston-ivi-shell/src/ivi-controller-impl.c
+++ b/weston-ivi-shell/src/ivi-controller-impl.c
@@ -287,6 +287,9 @@ update_surface_prop(struct ivisurface *ivisurf,
ivisurf->on_layer = ivilayer;
}
}
+
+ free(pArray);
+ pArray = NULL;
}
static void