diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-10 03:10:00 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-10 03:11:44 -0800 |
commit | eba5fc84b75c7dde072f1ba49a56f5e7913b8eb7 (patch) | |
tree | 7530361adfb726edbfca62259cc09d6610bd7ca7 /crawl-ref/source/items.cc | |
parent | 1569a7ec6ccfc1d9aafe1a92c70bba132adf6bf7 (diff) | |
download | crawl-ref-eba5fc84b75c7dde072f1ba49a56f5e7913b8eb7.tar.gz crawl-ref-eba5fc84b75c7dde072f1ba49a56f5e7913b8eb7.zip |
CrawlHashTable: free memory on assignment
Free a CrawlHashTable's used memory when it's clobbered via being
assigned to.
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index dd4924995c..fa9034eb99 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -466,9 +466,6 @@ void unlink_item( int dest ) void destroy_item( item_def &item, bool never_created ) { - // Free up CrawlHashTable memory. - item.props.clear(); - if (!item.is_valid()) return; |