Corrected deallocated of menu data reported by Valgrind

svn-id: r48412
This commit is contained in:
Paul Gilbert 2010-03-27 22:00:16 +00:00
parent a3ab15e8cf
commit b39222d611

View File

@ -293,8 +293,8 @@ uint16 PopupMenu::ShowInventory() {
for (itemCtr = 0; itemCtr < numItems; ++itemCtr)
free(itemNames[itemCtr]);
delete itemNames;
delete idList;
Memory::dealloc(itemNames);
Memory::dealloc(idList);
return result;
}