[PATCH 4/4] ivi-controller: fix memory leak at update_surface_prop

Ucan, Emre (ADITG/SW1) eucan at de.adit-jv.com
Tue Mar 29 09:37:09 EDT 2016

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 at de.adit-jv.com>
 weston-ivi-shell/src/ivi-controller-impl.c |    3 +++
 1 file changed, 3 insertions(+)

Best regards

Emre Ucan

Advanced Driver Information Technology GmbH
Software Group I (ADITG/SW1)
Robert-Bosch-Str. 200
31139 Hildesheim

Tel. +49 5121 49 6937
Fax +49 5121 49 6999
eucan at de.adit-jv.com

ADIT is a joint venture company of Robert Bosch GmbH/Robert Bosch Car Multimedia GmbH and DENSO Corporation
Sitz: Hildesheim, Registergericht: Amtsgericht Hildesheim HRB 3438
Geschaeftsfuehrung: Wilhelm Grabow, Ken Yaguchi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-ivi-controller-fix-memory-leak-at-update_surface_pro.patch
Type: application/octet-stream
Size: 1009 bytes
Desc: 0004-ivi-controller-fix-memory-leak-at-update_surface_pro.patch
URL: <http://lists.genivi.org/pipermail/genivi-ivi-layer-management_lists.genivi.org/attachments/20160329/3fe1f29d/attachment.patch>

More information about the genivi-ivi-layer-management mailing list