diff options
author | Josh Peterson <joshuap@unity3d.com> | 2019-11-14 17:41:54 +0300 |
---|---|---|
committer | Josh Peterson <joshuap@unity3d.com> | 2019-11-14 17:41:54 +0300 |
commit | 061d852b24f0128930fa7c4e24ec9d6529cf0eda (patch) | |
tree | 1c47e126b75bf206219541b9aae59b3f83f1c76a | |
parent | 8b95edbd6ede7aeeb17a58330a9028850d2e49f3 (diff) |
Only call a Windows-specific function on Windows
-rw-r--r-- | misc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1430,11 +1430,14 @@ GC_API void GC_CALL GC_enable_incremental(void) # endif GC_clear_exclusion_table(); memset(&GC_arrays, 0, sizeof(GC_arrays)); +# if defined(MSWIN32) || defined(MSWINCE) GC_win32_free_heap(); +# endif GC_clear_freelist(); GC_clear_bottom_indices(); GC_clear_finalizable_object_table(); GC_reset_mark_statics(); + GC_reset_default_push_other_roots(); } } |