summaryrefslogtreecommitdiff
path: root/src/group_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-05 21:20:55 +0000
committerrubidium <rubidium@openttd.org>2007-08-05 21:20:55 +0000
commit83e1fdcb0167c36729889511f7b1165038044c88 (patch)
treebfe043c51f23052fc39f35769a2ede1e66998148 /src/group_cmd.cpp
parentab5fa3add2f5f2feeb8f48127f6ee5ab69d42f65 (diff)
downloadopenttd-83e1fdcb0167c36729889511f7b1165038044c88.tar.xz
(svn r10799) -Fix: only calling QuickFree and not the destructor on pool cleanups might cause memory leaks due to the way C++ works.
Diffstat (limited to 'src/group_cmd.cpp')
-rw-r--r--src/group_cmd.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp
index b8e68fbbf..3ac42e2fd 100644
--- a/src/group_cmd.cpp
+++ b/src/group_cmd.cpp
@@ -50,13 +50,8 @@ Group::Group(StringID str)
Group::~Group()
{
- this->QuickFree();
- this->string_id = STR_NULL;
-}
-
-void Group::QuickFree()
-{
DeleteName(this->string_id);
+ this->string_id = STR_NULL;
}
bool Group::IsValid() const