Browse Source

An array is a GC'd object. Fixes #30.

woollybah 9 years ago
parent
commit
1af95511b8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      blitz.mod/blitz_gc.c

+ 4 - 0
blitz.mod/blitz_gc.c

@@ -104,6 +104,10 @@ int bbGCValidate( void *q ){
 				return 1;
 			}
 		}
+		// maybe an array?
+		if (clas == &bbArrayClass) {
+			return 1;
+		}
 	}
 	return 0;
 }