Finish the cynara before free a krt 49/78349/2 accepted/tizen/common/20160705.170428 accepted/tizen/ivi/20160705.101613 accepted/tizen/mobile/20160705.101702 accepted/tizen/tv/20160705.101609 accepted/tizen/wearable/20160705.101656 submit/tizen/20160705.080324
authorJengHyun Kang <jhyuni.kang@samsung.com>
Tue, 5 Jul 2016 08:01:32 +0000 (17:01 +0900)
committerJengHyun Kang <jhyuni.kang@samsung.com>
Tue, 5 Jul 2016 08:01:39 +0000 (17:01 +0900)
Change-Id: I3c97d18038b33c90756210e960a082417375707f

src/e_mod_main_wl.c

index 9f646fa..87153b3 100644 (file)
@@ -1008,11 +1008,12 @@ e_modapi_shutdown(E_Module *m)
      wl_resource_destroy(resource);
 
    wl_global_destroy(krt->global);
-   E_FREE(krt);
 
 #ifdef ENABLE_CYNARA
    if (krt->p_cynara) cynara_finish(krt->p_cynara);
 #endif
+
+   E_FREE(krt);
    /* TODO: free allocated memory */
 
    return 1;