Fixed a memory leak in HieroExtractor