games-samples
games-samples copied to clipboard
Memory Leak on losing focus
https://github.com/android/games-samples/blob/32ff4ddc95617d8592c5859c23daccb3e92dd773/agdk/agdktunnel/app/src/main/cpp/native_engine.cpp#L460C29-L460C29
Every time your app loses focus, the savedState is reallocated and the pointer to the previous allocation is lost. savedState's memory is never deleted.
how to fix?
จะแก้ไขอย่างไร?