From 1f6c586abd0b9af7f6a8ace1b75056b89bde84f0 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 5 May 2003 02:42:43 +0000 Subject: "" svn path=/trunk/; revision=608 --- externals/grill/flext/source/fldsp.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'externals/grill/flext/source/fldsp.cpp') diff --git a/externals/grill/flext/source/fldsp.cpp b/externals/grill/flext/source/fldsp.cpp index 9ee2f00c..2c33387f 100644 --- a/externals/grill/flext/source/fldsp.cpp +++ b/externals/grill/flext/source/fldsp.cpp @@ -91,6 +91,13 @@ void flext_dsp::dspmeth(fts_word_t *w) t_int *flext_dsp::dspmeth(t_int *w) { flext_dsp *obj = (flext_dsp *)w[1]; +#ifdef FLEXT_DEBUG + if(!obj->thisHdr()) { + // object is already deleted! + ERRINTERNAL(); + return w+3; + } +#endif #if FLEXT_SYS == FLEXT_SYS_MAX if(!obj->thisHdr()->z_disabled) #else -- cgit v1.2.1