diff options
Diffstat (limited to 'externals/grill/py/source/bound.cpp')
-rw-r--r-- | externals/grill/py/source/bound.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/externals/grill/py/source/bound.cpp b/externals/grill/py/source/bound.cpp index 1d10c2d3..a5ace4ee 100644 --- a/externals/grill/py/source/bound.cpp +++ b/externals/grill/py/source/bound.cpp @@ -174,13 +174,14 @@ void pyext::ClearBinding() // in case the object couldn't be constructed... if(!pyobj) return; - FLEXT_ASSERT(GetThis(pyobj)); + pyext *th = GetThis(pyobj); + FLEXT_ASSERT(th); void *data = NULL; const t_symbol *sym = NULL; // unbind all - while(GetThis(pyobj)->UnbindMethod(sym,NULL,&data)) { + while(th->UnbindMethod(sym,NULL,&data)) { bounddata *bdt = (bounddata *)data; if(bdt) { for(FuncSet::iterator it = bdt->funcs.begin(); it != bdt->funcs.end(); ++it) |