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

Remove AppDelegate memory leak in Android projects #174

Open
wants to merge 2 commits into
base: v3
Choose a base branch
from

Conversation

rynkowsg
Copy link

@rynkowsg rynkowsg commented Aug 6, 2016

AppDelegate object and all its members are never released.
As a solution, I proposed to use static unique_ptr that could destroy it at the end of the application.

Before applying the aforementioned fix I corrected also code style and correctness of main.cpp files in Android projects:

  • removed unused includes (reducing dependencies and compilation time)
  • corrected code style (whitespaces, headers' order, etc).

Greg Rynkowski added 2 commits August 6, 2016 10:14
- removed redundant headers (reduced dependencies)
- removed redundant code
- corrected code style
AppDelegate object and all its members are never released.
As a solution I propose to use static unique_ptr that could destroy it
at the end of the application.

Issue:
cocos2d/cocos2d-x#14110
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

Successfully merging this pull request may close these issues.

1 participant