Archive 17/01/2023.

Possible memory leak on Fade Levels

dev4fun

I was using this tutorial (https://discourse.urho3d.io/t/levels-fade-effect/2257), and I believe that has memory leak on some part of the code, I dont know where. Everytime when I change level/scene, memory of game its increased.

I would like to know if someone can help me to found this memory leak and fix it, Im newbie on Urho3D and Im appreciating it so much.

Thanks!

dev4fun

#Update 1 : I used UI::Clear to release scene/level, and now looks better… have more something to release all correctly?

#Update 2 : I was debugging the code, and I see that was not running the code Dispose (where should be release scene and elements of current level). Someone know why it isnt called?

artgolf1000

I have fixed the code.

dev4fun

@Fixed. Thanks for your help!