Add hideAlert: and fix mem-leak.