diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-19 20:59:01 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-19 20:59:01 +0100 |
commit | 0f6b4cc536e341ffa5f45e06844d52cc1a7af425 (patch) | |
tree | 6e587e48ba7a4e86bfad610e34884b8977a879cb /signal-composer-binding/signal-composer.cpp | |
parent | 90c605f1baecaaa49929d96b6f9a7318c212cb0b (diff) |
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 <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal-composer.cpp')
-rw-r--r-- | signal-composer-binding/signal-composer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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_); } |