From: Matthias Kramm Date: Tue, 3 Feb 2009 18:51:14 +0000 (+0100) Subject: explicitly null out interface list X-Git-Tag: release-0-9-0~161 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=a0255bee13e5b3ea8d621dedc435c393f7dc828d;p=swftools.git explicitly null out interface list --- diff --git a/lib/as3/registry.c b/lib/as3/registry.c index c65bcf5..069f923 100644 --- a/lib/as3/registry.c +++ b/lib/as3/registry.c @@ -103,7 +103,7 @@ classinfo_t* registry_getclassclass(classinfo_t*a) { return c; } - NEW(classinfo_t,c); + classinfo_t*c = rfx_calloc(sizeof(classinfo_t)+sizeof(classinfo_t*)); c->access = ACCESS_PUBLIC; c->package = ""; c->name = "Class"; @@ -234,7 +234,7 @@ classinfo_t* memberinfo_asclass(memberinfo_t*f) { return c; } - NEW(classinfo_t,c); + classinfo_t*c = rfx_calloc(sizeof(classinfo_t)+sizeof(classinfo_t*)); c->access = ACCESS_PUBLIC; c->package = ""; c->name = "Function";