[PATCH 0/2] Fix double free issue when a client surface is destroyed

Ucan, Emre (ADITG/SW1) eucan at de.adit-jv.com
Thu Mar 17 06:43:54 EDT 2016


When a client surface is destroyed, ivi-controller sends a content removed event and a surface destroyed event.
Both of these events are freeing the surface context, and therefore causing a double free. 

I removed the surface cleanup code from surface content listener implementation to fix this issue.
Furthermore, I changed the implementation of ivi-controller to send only surface destroyed event, when a client surface is destroyed.

Emre Ucan (2):
  ilmControl: don't free surface context twice
  ivi-controller: don't send content removed event

 .../ilmControl/src/ilm_control_wayland_platform.c  |   34 ++++++--------------
 weston-ivi-shell/src/ivi-controller-impl.c         |    1 -
 2 files changed, 9 insertions(+), 26 deletions(-)


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

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