Fix app terminate function 41/148441/3
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 8 Sep 2017 02:35:42 +0000 (11:35 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Fri, 8 Sep 2017 02:40:33 +0000 (02:40 +0000)
The terminate callback of the application should be called before
calling appcore_base_on_terminate() function.

Change-Id: I5004a3a3a8012ab6932e73c1db2dc2236c1deeed
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/service_app_main.c

index 284feda..aea30cc 100644 (file)
@@ -86,11 +86,11 @@ static int __service_app_create(void *data)
 
 static int __service_app_terminate(void *data)
 {
-       appcore_base_on_terminate();
-
        if (__context.callback.terminate)
                __context.callback.terminate(__context.data);
 
+       appcore_base_on_terminate();
+
        return APP_ERROR_NONE;
 }