[vulkan] Retain handle_keys item

Ugh, need to come up with valgrind for ruamoko :P
This commit is contained in:
Bill Currie 2021-01-17 22:26:48 +09:00
parent 8078e10ea1
commit debaffcb97

View file

@ -204,7 +204,7 @@ main(int argc, string *argv)
}
}
PLItem *handle_keys = [handles allKeys];
PLItem *handle_keys = [[handles allKeys] retain];
for (int i = [handle_keys count]; i-- > 0; ) {
string search_name = [[handle_keys getObjectAtIndex:i] string];
id obj = (id) Hash_Find (available_types, search_name);