git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dump out global methods
[swftools.git]
/
lib
/
python
/
taglist.c
diff --git
a/lib/python/taglist.c
b/lib/python/taglist.c
index
44d5c23
..
0a30c08
100644
(file)
--- a/
lib/python/taglist.c
+++ b/
lib/python/taglist.c
@@
-45,7
+45,7
@@
PyObject * taglist_new2(TAG*tag)
while(t) {len++;last=t;t=t->next;}
if(last && last->id==ST_END) {
while(t) {len++;last=t;t=t->next;}
if(last && last->id==ST_END) {
- swf_DeleteTag(last); last = 0;
+ swf_DeleteTag(0, last); last = 0;
len--;
if(len==0) tag = 0;
}
len--;
if(len==0) tag = 0;
}
@@
-286,8
+286,10
@@
static PyObject * taglist_item(PyObject * self, int index)
{
TagListObject*taglist = (TagListObject*)self;
PyObject*tag;
{
TagListObject*taglist = (TagListObject*)self;
PyObject*tag;
- mylog(" %08x(%d) taglist_item(%d)", (int)self, self->ob_refcnt, index);
tag = PyList_GetItem(taglist->taglist, index);
tag = PyList_GetItem(taglist->taglist, index);
+ if(!tag)
+ return 0;
+ mylog(" %08x(%d) taglist_item(%d): %08x", (int)self, self->ob_refcnt, index, tag);
Py_INCREF(tag);
return tag;
}
Py_INCREF(tag);
return tag;
}