Mmm I wonder why this was not causing a memory leak before.