diff --git a/src/stringfilter.cpp b/src/stringfilter.cpp index e021c57b57..780b4a8d66 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(strlen(str) + 1); this->filter_buffer = dest; WChar state = STATE_WHITESPACE;