From 40691d421728df7d92720bfb2e143d1f743b333a Mon Sep 17 00:00:00 2001 From: Owen Green Date: Sun, 3 May 2020 10:15:41 +0100 Subject: [PATCH] Tidy up properly --- include/FluidSCWrapper.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index 85b16b2..ce3f07b 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -1093,7 +1093,11 @@ class FluidSCWrapper : public impl::FluidSCWrapperBase }, nullptr, // NRT Thread: No-op [](World* w, void* data) // RT thread: clean up - { getInterfaceTable()->fRTFree(w, data); }, + { + MessageData* m = static_cast(data); + m->~MessageData(); + getInterfaceTable()->fRTFree(w, data); + }, 0, nullptr); }