X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fdevices%2Fswf.c;h=20cb71bf0368d1153408d7884a784e1c5c6d7332;hb=95d485fb6a0e26b89822eb47d58840b4c1671f48;hp=2969e750abfb8eaec01139ef2c611d83df9447a1;hpb=fc0b3bbd680ad6aee83ff13cb57f5016a442d0e2;p=swftools.git diff --git a/lib/devices/swf.c b/lib/devices/swf.c index 2969e75..20cb71b 100644 --- a/lib/devices/swf.c +++ b/lib/devices/swf.c @@ -1622,6 +1622,8 @@ void swfoutput_linktourl(gfxdevice_t*dev, const char*url, gfxline_t*points) actions = action_End(actions); drawlink(dev, actions, 0, points, 0, url); + + swf_ActionFree(actions); } void swfoutput_linktopage(gfxdevice_t*dev, int page, gfxline_t*points) { @@ -1648,6 +1650,8 @@ void swfoutput_linktopage(gfxdevice_t*dev, int page, gfxline_t*points) sprintf(name, "page%d", page); drawlink(dev, actions, 0, points, 0, name); + + swf_ActionFree(actions); } /* Named Links (a.k.a. Acrobatmenu) are used to implement various gadgets