Skip to content

AppDelegate deconstructor is not called on Android #14110

@rynkowsg

Description

@rynkowsg

I used at AppDelegate's deconstructor a log, and it was not printed.
I was looking and I found that AppDelegate object is created on the heap and probably it is not released.
Please look on the Android's main.cpp:

void cocos_android_app_init (JNIEnv* env) {
    LOGD("cocos_android_app_init");
    AppDelegate *pAppDelegate = new AppDelegate();
}

Does it should be like this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions