output:fix seg fault in transmitter when weston terminates 84/22884/1
authorVeeresh Kadasani <external.vkadasani@jp.adit-jv.com>
Wed, 6 Nov 2019 06:46:39 +0000 (15:46 +0900)
committerVeeresh Kadasani <external.vkadasani@jp.adit-jv.com>
Fri, 8 Nov 2019 01:25:16 +0000 (01:25 +0000)
commitbc48a58ff0f557a3bc7ed8ff9d58c86a6c632743
treec3509c64d3f7dfc6c29294d95ece384750b9b0cb
parent563a283967999056838baa062cf0028e05394649
output:fix seg fault in transmitter when weston terminates

Bug-AGL: SPEC-2939

If we stop weston with kill command weston doesn't terminate
properly and receives segmentation fault beacause of double free
output->link which happened because of wrongly calling
weston_output_destroy inside transmitter_destroy function.
Also initialize transmitter_output_disable to base disable pointer.

Change-Id: I2adda6eba7d260398d3e871fc21bf8f04d59cf0b
Signed-off-by: Veeresh Kadasani <external.vkadasani@jp.adit-jv.com>
(cherry picked from commit 8409a6d28957c6edd9caae8143ee54877e0e1256)
waltham-transmitter/transmitter-plugin/output.c