Finally done with this evil, evil problem. Holy crap there are no memory leaks too.
Crap branch because of my inexperience with merging :( ignore