X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpython%2FSWF.c;h=aa2c7f38890c184992d2f55cde90842d3ddfea8d;hb=be57616086f3764f47639f6457b7e290e38e4ba1;hp=5f03825951e85ff445776f9d4c3996d30e6ec9d5;hpb=263d494bd93334ec04c81dcbe47b69675fa23007;p=swftools.git diff --git a/lib/python/SWF.c b/lib/python/SWF.c index 5f03825..aa2c7f3 100644 --- a/lib/python/SWF.c +++ b/lib/python/SWF.c @@ -25,7 +25,7 @@ #include "../rfxswf.h" #include "../log.h" #include "./pyutils.h" -#include "./tag.h" +#include "./tags.h" #include "./taglist.h" /* @@ -123,6 +123,7 @@ static PyObject* f_load(PyObject* self, PyObject* args) return 0; } close(fi); + swf_FoldAll(&swf->swf); swf->taglist = taglist_new2(swf->swf.firstTag); if(swf->taglist == NULL) { @@ -198,7 +199,7 @@ static PyObject * swf_save(PyObject* self, PyObject* args, PyObject* kwargs) } close(fi); - //swf_FreeTags(swf); + swf_FreeTags(swf); /*{ TAG * t = swf->firstTag; while (t) { @@ -416,7 +417,7 @@ void initSWF(void) { PyObject*module; PyMethodDef* primitive_methods = primitive_getMethods(); - PyMethodDef* tag_methods = tag_getMethods(); + PyMethodDef* tag_methods = tags_getMethods(); PyMethodDef* action_methods = action_getMethods(); PyMethodDef* swf_methods = swf_getMethods();