summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-04-21 18:31:06 +0000
committerrubidium <rubidium@openttd.org>2014-04-21 18:31:06 +0000
commitb3129ce7bfc58ae7bf9a1ecc161902558e32e4cd (patch)
tree1758067d0f650f73e7849874dac5523fb81ba6ee
parentab49f2f0d94022a97041e41a3124797806a2241a (diff)
downloadopenttd-b3129ce7bfc58ae7bf9a1ecc161902558e32e4cd.tar.xz
(svn r26479) -Codechange: use MallocT instead of malloc
-rw-r--r--src/stringfilter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stringfilter.cpp b/src/stringfilter.cpp
index e021c57b5..780b4a8d6 100644
--- a/src/stringfilter.cpp
+++ b/src/stringfilter.cpp
@@ -32,7 +32,7 @@ void StringFilter::SetFilterTerm(const char *str)
assert(str != NULL);
- char *dest = (char *)malloc(strlen(str) + 1);
+ char *dest = MallocT<char *>(strlen(str) + 1);
this->filter_buffer = dest;
WChar state = STATE_WHITESPACE;