From d6d1febfad6698f55f077b7dd94330a46da83886 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 18 Apr 2005 15:07:41 +0000 Subject: changed template parameter of TableMap fixed problems with symbol binding restructured TableMap type (doesn't own pointers any more) svn path=/trunk/; revision=2779 --- externals/grill/flext/source/flattr_ed.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'externals/grill/flext/source/flattr_ed.cpp') diff --git a/externals/grill/flext/source/flattr_ed.cpp b/externals/grill/flext/source/flattr_ed.cpp index d8883005..dc2cc9d1 100644 --- a/externals/grill/flext/source/flattr_ed.cpp +++ b/externals/grill/flext/source/flattr_ed.cpp @@ -723,8 +723,10 @@ bool flext_base::cb_AttrDialog(flext_base *th,int argc,const t_atom *argv) a.SetInit(true); a.SetInitValue(icnt,argv+ioffs); */ - if(!a) - th->attrdata->insert(aname,a = new AttrData); + if(!a) { + AttrData *old = th->attrdata->insert(aname,a = new AttrData); + FLEXT_ASSERT(!old); + } a->SetSave(sv == 2); a->SetInit(true); -- cgit v1.2.1