aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flext.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-03-27 04:32:20 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-03-27 04:32:20 +0000
commit4386f66245b06858825f0ba6a1a8099d4d1e7c48 (patch)
treeda111b1b3dff2c3fead5bcabc21bac6cded88e86 /externals/grill/flext/source/flext.cpp
parenta9cb38c95099d99c7068d15623886ff697afae08 (diff)
""
svn path=/trunk/; revision=499
Diffstat (limited to 'externals/grill/flext/source/flext.cpp')
-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
}