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