Memory leaks fixing (still one important but can't find where)