From 5a0e00ca396c36b747a430f735f74eab4c867875 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 1 Dec 2009 22:41:12 -0700 Subject: [PATCH] GC safety bugfix --- src/builtin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin.cpp b/src/builtin.cpp index 27c6f0b20f..ddd900ae25 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -200,8 +200,8 @@ Avian_avian_SystemClassLoader_defineClass t->m->heap->free(buffer, length); if (c) { + PROTECT(t, c); if (getClassLoaderMap(t, loader) == 0) { - PROTECT(t, c); object map = makeHashMap(t, 0, 0); set(t, loader, ClassLoaderMap, map); }