[wearable] Release free memory from top of the heap 44/69544/1 accepted/tizen/wearable/20160516.091806 submit/tizen_wearable/20160516.012742
authorgs86.lee <gs86.lee@samsung.com>
Mon, 16 May 2016 00:58:33 +0000 (09:58 +0900)
committergs86.lee <gs86.lee@samsung.com>
Mon, 16 May 2016 00:58:33 +0000 (09:58 +0900)
Change-Id: I84958512d67f13ba77de0f2748b17e91936b4529

src/wearable/starter.c

index 8fa9362..d25449a 100755 (executable)
@@ -27,6 +27,7 @@
 #include <signal.h>
 #include <dd-deviced.h>
 #include <Ecore_Wayland.h>
+#include <malloc.h>
 
 #include "hw_key.h"
 #include "util.h"
@@ -200,6 +201,11 @@ int main(int argc, char *argv[])
 
        _init();
 
+       /*
+        * Release free memory from top of the heap
+        */
+       malloc_trim(0);
+
        elm_run();
 
        _fini();