aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext')
-rw-r--r--externals/grill/flext/source/flext.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/externals/grill/flext/source/flext.cpp b/externals/grill/flext/source/flext.cpp
index 8fe07f89..e6003466 100644
--- a/externals/grill/flext/source/flext.cpp
+++ b/externals/grill/flext/source/flext.cpp
@@ -56,6 +56,12 @@ flext_base::flext_base():
flext_base::~flext_base()
{
+#if FLEXT_SYS == FLEXT_SYS_MAX
+ // according to David Z. one should do that first...
+// if(insigs) dsp_free(thisHdr());
+ if(insigs) dsp_freebox(thisHdr());
+#endif
+
#ifdef FLEXT_THREADS
StopThreads();
#endif
@@ -104,9 +110,6 @@ flext_base::~flext_base()
for(int i = 0; i < outcnt; ++i) if(outdesc[i]) delete[] outdesc[i];
delete[] outdesc;
}
-
-// if(insigs) dsp_free(thisHdr());
- if(insigs) dsp_freebox(thisHdr());
#endif
}