ewk_shutdown() should be called after Runtime's destructor.
Change-Id: I64baede07e4418cbf75ba0d65f3d863ee1da3c65
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);
}