summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/signal-composer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'signal-composer-binding/signal-composer.cpp')
-rw-r--r--signal-composer-binding/signal-composer.cpp4
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_);
}