[FIX] fix leak memory from event handler