games-samples icon indicating copy to clipboard operation
games-samples copied to clipboard

Memory Leak

Open mduffor opened this issue 1 year ago • 0 comments

https://github.com/android/games-samples/blob/32ff4ddc95617d8592c5859c23daccb3e92dd773/agdk/agdktunnel/app/src/main/cpp/native_engine.cpp#L173C11-L173C30

internalStoragePath is allocated here, but never released. It is passed to the constructor of DataLoaderStateMachine, but it is only used there; DataLoaderStateMachine doesn't accept ownership or responsibility to delete.

mduffor avatar Aug 03 '23 15:08 mduffor