From 1db6d1ee4107fcceab86d2d8fe16c05983e320f8 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 29 Mar 2004 18:13:33 +0000 Subject: [PATCH] fixed endless tagloop bug. --- lib/python/taglist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 1.7.10.4