[Api] code clean
authorJaeyun <jy1210.jung@samsung.com>
Thu, 22 Aug 2019 03:47:34 +0000 (12:47 +0900)
committerwooksong <wook16.song@samsung.com>
Fri, 23 Aug 2019 10:42:43 +0000 (19:42 +0900)
commitc0693d3310e9ab9200ee03e24abbdfb8734a7038
treef0b0bac24dc27dff3c8dbe893f66dd19c6d44529
parenta3dc836000ee091b74f17aa94697066ec2835cc1
[Api] code clean

1. add struct for state change callback
2. check element pointer before free the resources

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
api/capi/include/nnstreamer-capi-private.h
api/capi/src/nnstreamer-capi-pipeline.c
api/capi/src/nnstreamer-capi-single.c