Memory issues solved, the rest of memleaks are not ours.