Commit 398b9b59 by Marcus Winter

dataflow_cpp: fixed initalization of input

parent e471ca13
......@@ -53,6 +53,9 @@ class In {
~In() {
if (NULL != values_) {
for (int ii = 0; ii < slices_; ii++) {
values_[ii].~SignalType();
}
embb::base::Allocation::Free(values_);
}
}
......@@ -78,7 +81,7 @@ class In {
embb::base::Allocation::Allocate(
sizeof(SignalType)*slices_));
for (int ii = 0; ii < slices_; ii++) {
values_[ii] = SignalType();
new (&values_[ii]) SignalType();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment