AppDelegate destructor not called in Android

In HelloLua sample for Android the AppDelegate destructor does not get called (it does in Windows). Why not? (I need to shutdown openSl sound)

I guess that it is caused by Android’s main.cpp:

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

As you can see AppDelegate is created on the heap, and it is not released.
I had not enough time to look on it closer.
If anyone could explain it, it would be great.

Update:
I asked about it in the issue on Github.
This is link to the issue: https://github.com/cocos2d/cocos2d-x/issues/14110#issuecomment-149137034