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); }