@@ -99,11 +99,11 @@ return; } unicodeLen = self.length; - unicodeString = of_malloc(unicodeLen, sizeof(of_unichar_t)); + unicodeString = of_alloc(unicodeLen, sizeof(of_unichar_t)); i = j = 0; newCStringLength = 0; while (i < _s->cStringLength) { @@ -153,11 +153,11 @@ i += cLen; } @try { - newCString = of_malloc(newCStringLength + 1, 1); + newCString = of_alloc(newCStringLength + 1, 1); } @catch (id e) { free(unicodeString); @throw e; } @@ -373,11 +373,11 @@ } - (void)appendCharacters: (const of_unichar_t *)characters length: (size_t)length { - char *tmp = of_malloc((length * 4) + 1, 1); + char *tmp = of_alloc((length * 4) + 1, 1); @try { size_t j = 0; bool isUTF8 = false;