From e2c404958ded1e62bb499f0767ef6f0f161151df Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 8 Aug 2009 22:42:52 +0000 Subject: [PATCH] (svn r17127) -Fix (r17124): destructor has to be defined else operator delete might be called with NULL parameter --- src/subsidy_base.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/subsidy_base.h b/src/subsidy_base.h index 015c773cc5..a4eb6ccd69 100644 --- a/src/subsidy_base.h +++ b/src/subsidy_base.h @@ -28,6 +28,11 @@ struct Subsidy : SubsidyPool::PoolItem<&_subsidy_pool> { */ FORCEINLINE Subsidy() { } + /** + * (Empty) destructor has to be defined else operator delete might be called with NULL parameter + */ + FORCEINLINE ~Subsidy() { } + /** * Tests whether this subsidy has been awarded to someone * @return is this subsidy awarded?