Add *with_allocator procedures to mem

This commit is contained in:
gingerBill
2018-08-05 23:40:19 +01:00
parent d8e5b2d1a4
commit fad3947e26
2 changed files with 26 additions and 11 deletions

View File

@@ -4342,7 +4342,7 @@ skip:
gb_mutex_lock(&p->file_add_mutex);
defer (gb_mutex_unlock(&p->file_add_mutex));
array_add(&pkg->files, file);
array_add(&file->pkg->files, file);
if (pkg->name.len == 0) {
pkg->name = file->package_name;