From: kramm Date: Mon, 29 Mar 2004 18:13:33 +0000 (+0000) Subject: fixed endless tagloop bug. X-Git-Tag: stable_core_1~33 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=1db6d1ee4107fcceab86d2d8fe16c05983e320f8 fixed endless tagloop bug. --- diff --git a/lib/python/taglist.c b/lib/python/taglist.c index 9caf3b2..711817e 100644 --- a/lib/python/taglist.c +++ b/lib/python/taglist.c @@ -41,7 +41,7 @@ PyObject * taglist_new2(TAG*tag) nr = 0; t = tag; while(t) { - PyObject*newtag = tag_new2(tag, taglist->tagmap); + PyObject*newtag = tag_new2(t, taglist->tagmap); PyList_SET_ITEM(taglist->taglist,nr,newtag);Py_INCREF(newtag); if(swf_isDefiningTag(t)) { tagmap_add(taglist->tagmap, newtag); @@ -72,6 +72,7 @@ TAG* taglist_getTAGs(PyObject*self) tag = tag_getTAG(item, tag, taglist->tagmap); if(!firstTag) firstTag = tag; + mylog(" %08x(%d) taglist_getTAGs: added tag %08x", (int)self, self->ob_refcnt, tag); } return firstTag; }