aboutsummaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/signal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'signal-composer-binding/signal.cpp')
-rw-r--r--signal-composer-binding/signal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/signal-composer-binding/signal.cpp b/signal-composer-binding/signal.cpp
index 2af440c..17286f5 100644
--- a/signal-composer-binding/signal.cpp
+++ b/signal-composer-binding/signal.cpp
@@ -142,7 +142,7 @@ json_object* Signal::toJSON() const
struct signalCBT* Signal::get_context()
{
- struct signalCBT* ctx = (struct signalCBT*)calloc (1, sizeof(struct signalCBT));
+ struct signalCBT* ctx = new struct signalCBT;
if(!ctx->searchNsetSignalValue)
{ctx->searchNsetSignalValue = searchNsetSignalValueHandle;}