Fix appcore_base_flush_memory API 08/171008/1
authorHwankyu Jhun <h.jhun@samsung.com>
Sun, 25 Feb 2018 22:55:10 +0000 (07:55 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Sun, 25 Feb 2018 22:56:00 +0000 (07:56 +0900)
- Releases elm cache memory

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

index cc311a9..34d9278 100644 (file)
@@ -1090,6 +1090,11 @@ EXPORT_API void appcore_base_fini(void)
 EXPORT_API int appcore_base_flush_memory(void)
 {
        int (*sqlite3_free_heap_memory)(int);
+       void (*elm_free_all_cache)(void);
+
+       elm_free_all_cache = dlsym(RTLD_DEFAULT, "elm_cache_all_flush");
+       if (elm_free_all_cache)
+               elm_free_all_cache();
 
        sqlite3_free_heap_memory = dlsym(RTLD_DEFAULT,
                        "sqlite3_release_memory");