From d73111fb898994e75cf4c9e2f6c81a3d96a10ba8 Mon Sep 17 00:00:00 2001 From: WonYoung Choi Date: Mon, 10 Aug 2015 13:33:51 +0900 Subject: [PATCH] Fix SIGABRT when runtime exits. ewk_shutdown() should be called after Runtime's destructor. Change-Id: I64baede07e4418cbf75ba0d65f3d863ee1da3c65 --- src/runtime/main.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/runtime/main.cc b/src/runtime/main.cc index 6fbb087a1..a4eab5f03 100755 --- a/src/runtime/main.cc +++ b/src/runtime/main.cc @@ -48,8 +48,12 @@ int main(int argc, char* argv[]) { sizeof(chromium_arg_options) / sizeof(chromium_arg_options[0]); ewk_set_arguments(chromium_arg_cnt, chromium_arg_options); - wrt::Runtime runtime; - int ret = runtime.Exec(argc, argv); + int ret = 0; + // Runtime's destructor should be called before ewk_shutdown() + { + wrt::Runtime runtime; + ret = runtime.Exec(argc, argv); + } ewk_shutdown(); exit(ret); } -- 2.34.1