X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fmodules%2Fswfobject.c;h=36b66d435d4ed71e2d092cda6a467ff05f623077;hp=ef6903e901368088f823782d4a24e608720f5ccf;hb=445a7e494abd92243be4f21028c609beb99e4322;hpb=6ff87df3f198989c39e4adca06e0e92069a29edd diff --git a/lib/modules/swfobject.c b/lib/modules/swfobject.c index ef6903e..36b66d4 100644 --- a/lib/modules/swfobject.c +++ b/lib/modules/swfobject.c @@ -153,8 +153,10 @@ void swf_SetPlaceObject(TAG * t,SWFPLACEOBJECT* obj) void swf_GetPlaceObject(TAG * tag,SWFPLACEOBJECT* obj) { - if(!tag) { + if(obj) memset(obj, 0, sizeof(SWFPLACEOBJECT)); + + if(!tag) { swf_GetMatrix(0, &obj->matrix); swf_GetCXForm(0, &obj->cxform, 1); //obj->internal = PF_CHAR|PF_MATRIX|PF_CXFORM;