git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bb3dc0a
)
fixed endless tagloop bug.
author
kramm
<kramm>
Mon, 29 Mar 2004 18:13:33 +0000
(18:13 +0000)
committer
kramm
<kramm>
Mon, 29 Mar 2004 18:13:33 +0000
(18:13 +0000)
lib/python/taglist.c
patch
|
blob
|
history
diff --git
a/lib/python/taglist.c
b/lib/python/taglist.c
index
9caf3b2
..
711817e
100644
(file)
--- 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) {
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);
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;
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;
}
}
return firstTag;
}