X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfobject.c;h=36b66d435d4ed71e2d092cda6a467ff05f623077;hb=dc54798b330f9e9419f89b1fcf5e32793478d573;hp=ef6903e901368088f823782d4a24e608720f5ccf;hpb=e23291bdd4c7bb58ca4ea9765872823e11d9108b;p=swftools.git 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;