Fix app terminate function 42/148442/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 8 Sep 2017 02:42:51 +0000 (11:42 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 8 Sep 2017 02:42:51 +0000 (11:42 +0900)
The terminate callback of the application should be called before
calling appcore_base_on_terminate() function.

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

index 4d9c7b9..f424618 100755 (executable)
@@ -88,11 +88,11 @@ static int __ui_app_create(void *data)
 
 static int __ui_app_terminate(void *data)
 {
-       appcore_efl_base_on_terminate();
-
        if (__context.callback.terminate)
                __context.callback.terminate(__context.data);
 
+       appcore_efl_base_on_terminate();
+
        return APP_ERROR_NONE;
 }