X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfaction.c;h=fb7474d130df4f1b3253380044bfd486d4cd5239;hb=275179c87d277416cfcc0d7a346ed60c4545ba31;hp=9f44d4b6289bf20fbc61eff4926c74304b61f9d3;hpb=0f54ba811030f2579cce874ef577e36d1c75270b;p=swftools.git diff --git a/lib/modules/swfaction.c b/lib/modules/swfaction.c index 9f44d4b..fb7474d 100644 --- a/lib/modules/swfaction.c +++ b/lib/modules/swfaction.c @@ -182,7 +182,6 @@ ActionTAG* swf_ActionGet(TAG*tag) void swf_ActionFree(ActionTAG*action) { if(!action) { - fprintf(stderr, "Warning: freeing zero action"); return; } action = action->parent; @@ -208,6 +207,9 @@ void swf_ActionFree(ActionTAG*action) void swf_ActionSet(TAG*tag, ActionTAG*action) { + if(!action) { + return; + } action=action->parent; while(action) { @@ -969,7 +971,7 @@ ActionTAG* action_WaitForFrame(ActionTAG*atag, U16 frame, U8 skip) *(U8*)&atag->tmp[2] = skip; return atag; } -ActionTAG* action_SetTarget(ActionTAG*atag, char* target) +ActionTAG* action_SetTarget(ActionTAG*atag, const char* target) { char*ptr = strdup(target); return swf_AddActionTAG(atag, ACTION_SETTARGET, (U8*)ptr, strlen(ptr)+1);