X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpython%2Ftags.c;h=7fe35a441b7b709c691c3cc8c0d0574337162b7b;hb=e4687b3aa2aed49fb16ba9e9561344d808750297;hp=0ff6b329e701d78dffe9780c13744cb8ecd430d8;hpb=d4aa5c790124fabac817e0fb50cc2c7b2e7fa629;p=swftools.git diff --git a/lib/python/tags.c b/lib/python/tags.c index 0ff6b32..7fe35a4 100644 --- a/lib/python/tags.c +++ b/lib/python/tags.c @@ -106,7 +106,7 @@ static int po_parse(tag_internals_t*self) SWFPLACEOBJECT* swfpo = malloc(sizeof(SWFPLACEOBJECT)); swf_GetPlaceObject(self->tag, swfpo); i->po = swfpo; - swf_DeleteTag(self->tag);self->tag = 0; + swf_DeleteTag(0, self->tag);self->tag = 0; if(i->po->id) { i->character = tagmap_id2obj(self->tagmap, i->po->id); @@ -420,7 +420,7 @@ static int sprite_setattr(tag_internals_t*self,char*a, PyObject*obj) { sprite_internal_t*si = (sprite_internal_t*)self->data; if(self->tag) { - swf_DeleteTag(self->tag); + swf_DeleteTag(0, self->tag); self->tag = 0; } if(!strcmp(a, "tags")) { @@ -573,7 +573,7 @@ static int image_parse(tag_internals_t*self) i->isindexed = 0; i->islossless = 1; - swf_DeleteTag(self->tag);self->tag = 0; + swf_DeleteTag(0, self->tag);self->tag = 0; return 1; } static int imagetag_getWidth(PyObject* self) @@ -684,7 +684,7 @@ static int shape_parse(tag_internals_t*self) SHAPE2* shape2 = malloc(sizeof(SHAPE2)); swf_ParseDefineShape(self->tag, shape2); i->shape2 = shape2; - swf_DeleteTag(self->tag);self->tag = 0; + swf_DeleteTag(0, self->tag);self->tag = 0; return 1; } static void shape_dealloc(tag_internals_t*self)