Validate context before destroy it.
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 20 Mar 2014 08:35:55 +0000 (17:35 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 20 Mar 2014 12:39:56 +0000 (21:39 +0900)
commit21abe76b01a6649b6c9d57d631de6020452030f7
tree30416d3e0f5a9d2b8f1d3861f2cbd867d8b0af15
parent5f919558f6b69d23f79fb626950748f1a58e8bb8
Validate context before destroy it.

dlist_remove_data always find the data before delete the item.
This patch will find the item first like dlist_remove_data.
but if there is no item in the list,
do not release it. just skip the destroy function call.

Change-Id: Ia15fa5c7dc3f283a19e7b5109c3c5796623b55d2
packaging/libcom-core.spec
src/com-core.c
src/com-core_packet.c