diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-03 20:00:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-03 20:00:46 +0300 |
commit | a1bd0179b28fa93c771bc5602f64746878f0ffad (patch) | |
tree | ff696a9b98c32441b06ffabf2a8ca7312590c8e3 /src/net/ea/inventoryhandler.cpp | |
parent | 41953ac4902ca11bb07b0aab53e811ca68ce4f64 (diff) | |
download | plus-a1bd0179b28fa93c771bc5602f64746878f0ffad.tar.gz plus-a1bd0179b28fa93c771bc5602f64746878f0ffad.tar.bz2 plus-a1bd0179b28fa93c771bc5602f64746878f0ffad.tar.xz plus-a1bd0179b28fa93c771bc5602f64746878f0ffad.zip |
fix some leaks on exit.
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index 086a05102..65f0d87a0 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -95,6 +95,12 @@ InventoryHandler::~InventoryHandler() mStorage = nullptr; } +void InventoryHandler::clear() +{ + delete mStorage; + mStorage = nullptr; +} + bool InventoryHandler::canSplit(const Item *const item A_UNUSED) const { return false; |