games-samples icon indicating copy to clipboard operation
games-samples copied to clipboard

Memory Leak on losing focus

Open mduffor opened this issue 1 year ago • 2 comments

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.

mduffor avatar Aug 03 '23 23:08 mduffor

how to fix?

tempral avatar Dec 14 '23 07:12 tempral

จะแก้ไขอย่างไร?

Apf568 avatar Feb 25 '24 18:02 Apf568