mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-16 08:36:07 +09:00
issue #26 resolved (someone is hoolding stale ingame context)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package net.torvald
|
||||
|
||||
import net.torvald.terrarum.printStackTrace
|
||||
import sun.misc.Unsafe
|
||||
|
||||
/**
|
||||
@@ -57,7 +58,7 @@ class UnsafePtr(pointer: Long, allocSize: Long) {
|
||||
UnsafeHelper.unsafe.freeMemory(ptr)
|
||||
|
||||
println("[UnsafePtr] Destroying pointer $this; called from:")
|
||||
Thread.currentThread().stackTrace.forEach { println(it) }
|
||||
printStackTrace(this)
|
||||
|
||||
destroyed = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user