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;
}
{
TagListObject*taglist = (TagListObject*)self;
PyObject*tag;
- mylog(" %08x(%d) taglist_item(%d)", (int)self, self->ob_refcnt, 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;
}