@@ -115,20 +115,19 @@ level: (unsigned int)level { OFString *ret; if (indentation > 0 && level > 0) { - char *whitespaces = [self allocMemoryWithSize: - (level * indentation) + 1]; + char *whitespaces = of_malloc((level * indentation) + 1, 1); memset(whitespaces, ' ', level * indentation); whitespaces[level * indentation] = 0; @try { ret = [OFString stringWithFormat: @"%s", whitespaces, _processingInstructions]; } @finally { - [self freeMemory: whitespaces]; + free(whitespaces); } } else ret = [OFString stringWithFormat: @"", _processingInstructions];