fix: event object memory leak.