Deep dive to fix a memory retain cycle in an open source framework I use

PR is created :)