Fixed leak in input manager
Fixed bug when removing node from parent
Fixed leak in timer
Minor fixes