Fixed memoryleak.