data_device: Fix crash when destroying data_offer 22/280022/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 18 Aug 2022 01:46:12 +0000 (10:46 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 22 Aug 2022 09:08:16 +0000 (18:08 +0900)
commitd893f8eda077e870b73ed7f552fe333f144c0203
treee1183b83455c4a10323f3ba03765a08324cd0da7
parent5ec9a51356ca4d55358dbc4c2d4c1e1b881073d9
data_device: Fix crash when destroying data_offer

The listener of destroy of data_source has to be removed when destroying
data_offer no matter whether offer->source is null or not.
That's because there is the case where calls data_offer_destroy after
nullifying offer->source.

Change-Id: I3c2fd97de39b52b4cae4de4c1390e773fb7c1047
src/data_device/data_offer.c