explicitly null out interface list
authorMatthias Kramm <kramm@quiss.org>
Tue, 3 Feb 2009 18:51:14 +0000 (19:51 +0100)
committerMatthias Kramm <kramm@quiss.org>
Tue, 3 Feb 2009 18:51:14 +0000 (19:51 +0100)
lib/as3/registry.c

index c65bcf5..069f923 100644 (file)
@@ -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";