[Service] Call destroy() of FunctionTemplate 85/265085/5
authorDongHyun Song <dh81.song@samsung.com>
Fri, 15 Oct 2021 02:43:26 +0000 (11:43 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Fri, 15 Oct 2021 04:42:31 +0000 (13:42 +0900)
commitdc19d94f302de3e48620be09b4a09e876cfeabc7
tree38c032a7638e19b00ce4d0c346bec73585c5248b
parentcb218f9b62d4c3ec19af3fa17f6f3bdc66cef799
[Service] Call destroy() of FunctionTemplate

FunctionTemplate(prototype) remains memory leak even though node
worker isolate is gone.

This patch calls destroy() of prototype explicitly, which is made
by gin_helper::ObjectTemplateBuilder()
 - wrt, wrt.tv, wrt.mde, wrt.security, wrt.edge, xwalk

Related patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/264969/

Change-Id: I0cfea24bd0bcec64012f493e3e8bca565fc4f073
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/common/wrt_xwalk_extension.ts
wrt_app/service/device_api_router.ts
wrt_app/service/service_runner.ts