Merge branch 'dev-win' into dev-exp

This commit is contained in:
daan 2019-08-21 11:12:25 -07:00
commit 71121a7457
3 changed files with 16 additions and 4 deletions

View file

@ -239,7 +239,7 @@ static bool _mi_heap_done(void) {
// switch to backing heap and free it
heap = heap->tld->heap_backing;
if (!mi_heap_is_initialized(heap)) return false;
// collect if not the main thread
if (heap != &_mi_heap_main) {
_mi_heap_collect_abandon(heap);