Fix wxEvent memory owning