diff options
author | rubidium <rubidium@openttd.org> | 2007-08-05 21:20:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-05 21:20:55 +0000 |
commit | 83e1fdcb0167c36729889511f7b1165038044c88 (patch) | |
tree | bfe043c51f23052fc39f35769a2ede1e66998148 /src/signs.cpp | |
parent | ab5fa3add2f5f2feeb8f48127f6ee5ab69d42f65 (diff) | |
download | openttd-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/signs.cpp')
-rw-r--r-- | src/signs.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/signs.cpp b/src/signs.cpp index 8e05f2c01..f8ad95f45 100644 --- a/src/signs.cpp +++ b/src/signs.cpp @@ -28,13 +28,8 @@ Sign::Sign(StringID string) Sign::~Sign() { - this->QuickFree(); - this->str = STR_NULL; -} - -void Sign::QuickFree() -{ DeleteName(this->str); + this->str = STR_NULL; } /** |