From a5e45cef061b921981012176ad7dc9cb5e03dacc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Jul 2011 22:33:12 +0300 Subject: Fix memory leak in shop window, add missing initialisation to BeingCacheEntry. Small code style fix. --- src/gui/widgets/shopitems.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/widgets/shopitems.h') diff --git a/src/gui/widgets/shopitems.h b/src/gui/widgets/shopitems.h index cc444fe85..abfcffb71 100644 --- a/src/gui/widgets/shopitems.h +++ b/src/gui/widgets/shopitems.h @@ -95,6 +95,13 @@ class ShopItems : public gcn::ListModel */ void erase(unsigned int i); + /** + * Removes an element from the shop and destroy it. + * + * @param i index to remove + */ + void del(unsigned int i); + /** * Clears the list of items in the shop. */ -- cgit v1.2.3-70-g09d2