load() now does a FoldAll before passing the data to the taglist
authorkramm <kramm>
Thu, 8 Apr 2004 08:59:25 +0000 (08:59 +0000)
committerkramm <kramm>
Thu, 8 Apr 2004 08:59:25 +0000 (08:59 +0000)
lib/python/SWF.c

index 5f03825..ef7d49e 100644 (file)
@@ -123,6 +123,7 @@ static PyObject* f_load(PyObject* self, PyObject* args)
        return 0;
     }
     close(fi);
        return 0;
     }
     close(fi);
+    swf_FoldAll(&swf->swf);
 
     swf->taglist = taglist_new2(swf->swf.firstTag);
     if(swf->taglist == NULL) {
 
     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);
 
     }
     close(fi);
 
-    //swf_FreeTags(swf);
+    swf_FreeTags(swf);
     /*{ TAG * t = swf->firstTag;
       while (t)
       { 
     /*{ TAG * t = swf->firstTag;
       while (t)
       {