Fixed silly memory leaks; "itos" uses a method that doesn't cause memory leaks (note to MinGW users:  there might be an error with this method)