merge from dev-win

This commit is contained in:
daan 2019-08-21 11:18:05 -07:00
commit a3c4b1c95b
3 changed files with 15 additions and 8 deletions

View file

@ -249,7 +249,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);