Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak on losing focus #53

Open
mduffor opened this issue Aug 3, 2023 · 2 comments
Open

Memory Leak on losing focus #53

mduffor opened this issue Aug 3, 2023 · 2 comments

Comments

@mduffor
Copy link

mduffor commented Aug 3, 2023

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.

@tempral
Copy link

tempral commented Dec 14, 2023

how to fix?

@Apf568
Copy link

Apf568 commented Feb 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants