From e9c3f4476f692680c03a562364496ce8571d4a1c Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 19 Dec 2017 21:00:41 +0100 Subject: Bulk of small fixes Correctly grab lua script using simpler prefix Correctly free Composer object's members Adding default binding source as required-apis Change-Id: I91d34b636286e79c7bcc27f8ba2730897ec5f424 Signed-off-by: Romain Forlot --- conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua | 8 -------- conf.d/wgt/config.xml.in | 2 ++ ctl-utilities | 2 +- signal-composer-binding/signal-composer.cpp | 4 ++-- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua b/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua index 0295b6d..9d31f25 100644 --- a/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua +++ b/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua @@ -75,14 +75,6 @@ function _Simple_Echo_Args (source, args, event) print ("--inlua-- source=", Dump_Table(source)) print ("--inlua-- args=", Dump_Table(args)) print ("--inlua-- event=", Dump_Table(event)) - - local response={ - ["count"]=_count, - ["args"]=args, - } - - -- fulup Embdeded table ToeDone AFB:success (request, response) - -- AFB:success (request, response) end local function Test_Async_CB (request, result, context) diff --git a/conf.d/wgt/config.xml.in b/conf.d/wgt/config.xml.in index 574c388..e72a08e 100644 --- a/conf.d/wgt/config.xml.in +++ b/conf.d/wgt/config.xml.in @@ -18,6 +18,8 @@ + + diff --git a/ctl-utilities b/ctl-utilities index 554b5ec..958e2d9 160000 --- a/ctl-utilities +++ b/ctl-utilities @@ -1 +1 @@ -Subproject commit 554b5ec5cbe4520abfee59ac0963af7ac1ecfadd +Subproject commit 958e2d98e37907e565a0cdd12459c5ae4b11887e diff --git a/signal-composer-binding/signal-composer.cpp b/signal-composer-binding/signal-composer.cpp index 83a2b9f..fa565cb 100644 --- a/signal-composer-binding/signal-composer.cpp +++ b/signal-composer-binding/signal-composer.cpp @@ -93,8 +93,8 @@ Composer::~Composer() { json_object_put(j); } - json_object_put(ctlConfig_->configJ); - json_object_put(ctlConfig_->requireJ); + if (ctlConfig_->configJ) json_object_put(ctlConfig_->configJ); + if (ctlConfig_->requireJ)json_object_put(ctlConfig_->requireJ); free(ctlConfig_); } -- cgit 1.2.3-korg