Fixed deallocation of scene nodes.