From 4a749ead2bec4b625f1f033f0919de06623cd92b Mon Sep 17 00:00:00 2001 From: Junghoon Park Date: Thu, 26 May 2016 12:12:00 +0900 Subject: [PATCH] Trim memory after initializing lib - result (common type) CODE DATA PEAK PSS 3D GEM(PSS) SWAP COMMAND 6628 3052 10192 3332 0 0 0 /usr/bin/launchpad-loader <== before 6628 2392 10204 2669 0 0 0 /usr/bin/launchpad-loader <== after Change-Id: Id621669dddc691b1ba5bb12bbae07d86f1cda212 Signed-off-by: Junghoon Park --- src/launchpad_loader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/launchpad_loader.c b/src/launchpad_loader.c index f2ca7b0..17fc4bd 100644 --- a/src/launchpad_loader.c +++ b/src/launchpad_loader.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -107,6 +108,7 @@ static void __loader_create_cb(bundle *extra, int type, void *user_data) __init_theme(); break; } + malloc_trim(0); } static int __loader_launch_cb(int argc, char **argv, const char *app_path, -- 2.7.4