I managed to free the memory…
The reason why only making the
unowned didn’t work was because it was only half of the solution. The
navigation was being retained elsewhere… To solve it, simply make the
navigation unowned but inside the
Other solutions are possible, this was a quick fix to illustrate a possible solution. Hope this helps fixing the memory management for this project, I will edit my PR with this changes when I get the chance.
Thank you for your time Dama and again for the article!