axmol/core/platform/wasm
Deal 9774d4751c
Fix memory leaks refreshed (#1638)
* Fix memory leaks when axmol apps exit on non-embed systems

    1. DriverBase no destroyInstance
    2. Every object inherited from ax::Ref shoud destory before ScriptEngineManager, otherwise will trigger it's reinit and leak
    3.  QuadCommand always leak isolated indices
    4. static singleton should'nt inhert from ax::Ref due to destory it before ScriptEngineManager impossible
    5. Make Director don't inherit from ax::Ref due to it also cause ScriptEngineManager re-init, because we destroy ScriptEngineManger in destructor of Director
    6. Explicit Director managed by Application and don't delete self at purgeDirector, since it will release at mainLoop and re-init in glView->pollEvents then leak
    7. Rename ApplicationProtocol to ApplicationBase
    8. Rename purgeDirector since we don't delete director self at it, maye rename to cleanup
    9. Change ShaderCache to new/delete singleton, managed by ProgramManager

---------

Co-authored-by: lich426 <lich426@gmail.com>
2024-01-29 22:30:14 +08:00
..
Application-wasm.cpp Rename glview to correct representative name (#1467) 2023-12-01 09:04:51 +08:00
Application-wasm.h Fix memory leaks refreshed (#1638) 2024-01-29 22:30:14 +08:00
Common-wasm.cpp WASM: use shorten target platform name 'wasm' instead 'emscripten' 2023-09-05 22:17:18 +08:00
Device-wasm.cpp Add API: Device::getPixelRatio (#1418) 2023-11-06 00:19:44 +08:00
FileUtils-wasm.cpp WASM: use shorten target platform name 'wasm' instead 'emscripten' 2023-09-05 22:17:18 +08:00
FileUtils-wasm.h WASM: use shorten target platform name 'wasm' instead 'emscripten' 2023-09-05 22:17:18 +08:00
GL-wasm.h Prepare 2.1.0 release 2023-12-08 01:04:43 +08:00
PlatformDefine-wasm.h WASM: use shorten target platform name 'wasm' instead 'emscripten' 2023-09-05 22:17:18 +08:00
StdC-wasm.h WASM: use shorten target platform name 'wasm' instead 'emscripten' 2023-09-05 22:17:18 +08:00
devtools-wasm.cpp Make wasm devtools works 2023-09-15 19:33:25 +08:00
devtools-wasm.h Make wasm devtools works 2023-09-15 19:33:25 +08:00
shell_minimal.html Make wasm devtools works 2023-09-15 19:33:25 +08:00