aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--signal-composer-binding/signal-composer.cpp2
-rw-r--r--signal-composer-binding/signal.cpp2
-rw-r--r--signal-composer-binding/source.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/signal-composer-binding/signal-composer.cpp b/signal-composer-binding/signal-composer.cpp
index d9d004c..903af9c 100644
--- a/signal-composer-binding/signal-composer.cpp
+++ b/signal-composer-binding/signal-composer.cpp
@@ -575,7 +575,7 @@ void* Composer::createContext(void* ctx)
void Composer::destroyContext(void* ctx)
{
- free(ctx);
+ delete(ctx);
}
std::vector<std::string> Composer::parseURI(const std::string& uri)
diff --git a/signal-composer-binding/signal.cpp b/signal-composer-binding/signal.cpp
index 17286f5..ab8723e 100644
--- a/signal-composer-binding/signal.cpp
+++ b/signal-composer-binding/signal.cpp
@@ -72,7 +72,7 @@ Signal::Signal(const std::string& id,
Signal::~Signal()
{
- free(onReceived_);
+ delete(onReceived_);
}
Signal::operator bool() const
diff --git a/signal-composer-binding/source.cpp b/signal-composer-binding/source.cpp
index 830f799..6ad9511 100644
--- a/signal-composer-binding/source.cpp
+++ b/signal-composer-binding/source.cpp
@@ -117,7 +117,7 @@ void SourceAPI::makeSubscription()
ActionExecOne(&source, getSignals_, signalJ);
// Considerate signal subscribed no matter what
sig.second->subscribed_ = true;
- delete(source.context);
+ delete((struct signalCBT*)source.context);
}
source.uid = "";
ActionExecOne(&source, getSignals_, nullptr);