fix a memory leak in OctreeElement