output:fix seg fault in transmitter when weston terminates 66/22866/3
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>
Thu, 7 Nov 2019 05:25:39 +0000 (05:25 +0000)
commit8409a6d28957c6edd9caae8143ee54877e0e1256
treec3509c64d3f7dfc6c29294d95ece384750b9b0cb
parent2309102f95145d04dad67bf4d00e4c217aea8470
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>
waltham-transmitter/transmitter-plugin/output.c