From a0255bee13e5b3ea8d621dedc435c393f7dc828d Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Tue, 3 Feb 2009 19:51:14 +0100 Subject: [PATCH] explicitly null out interface list --- lib/as3/registry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 1.7.10.4