X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fdevices%2Fswf.c;h=2969e750abfb8eaec01139ef2c611d83df9447a1;hb=fc0b3bbd680ad6aee83ff13cb57f5016a442d0e2;hp=126d53bbfe5c74be358ca95e7c44daa75f6b4d9b;hpb=3bb13bf276c06169f1ed0c03a8e253b2e30d1a0c;p=swftools.git diff --git a/lib/devices/swf.c b/lib/devices/swf.c index 126d53b..2969e75 100644 --- a/lib/devices/swf.c +++ b/lib/devices/swf.c @@ -1106,6 +1106,7 @@ void gfxdevice_swf_init(gfxdevice_t* dev) i->swf->movieSize.ymin = 0; i->swf->movieSize.xmax = 0; i->swf->movieSize.ymax = 0; + i->swf->fileAttributes = 9; // as3, local-with-network i->swf->firstTag = swf_InsertTag(NULL,ST_SETBACKGROUNDCOLOR); i->tag = i->swf->firstTag; @@ -1779,6 +1780,7 @@ static void drawlink(gfxdevice_t*dev, ActionTAG*actions1, ActionTAG*actions2, gf i->swflastx = i->swflasty = 0; drawgfxline(dev, points, 1); swf_ShapeSetEnd(i->tag); + swf_ShapeFree(i->shape); /* shape2 */ myshapeid2 = getNewID(dev); @@ -1802,6 +1804,7 @@ static void drawlink(gfxdevice_t*dev, ActionTAG*actions1, ActionTAG*actions2, gf i->swflastx = i->swflasty = 0; drawgfxline(dev, points, 1); swf_ShapeSetEnd(i->tag); + swf_ShapeFree(i->shape); if(!mouseover) {