Index: src/OFXMLParser.m ================================================================== --- src/OFXMLParser.m +++ src/OFXMLParser.m @@ -64,11 +64,11 @@ id delegate) { char *items; size_t i, length; BOOL hasEntities = NO; - OFMutableString *ret; + OFString *ret; items = [cache items]; length = [cache count] - cut; for (i = 0; i < length; i++) { @@ -83,18 +83,16 @@ items[i] = '\n'; } else if (items[i] == '&') hasEntities = YES; } - ret = [OFMutableString stringWithUTF8String: items - length: length]; + ret = [OFString stringWithUTF8String: items + length: length]; if (unescape && hasEntities) return [ret stringByXMLUnescapingWithDelegate: delegate]; - [ret makeImmutable]; - return ret; } static OFString* namespace_for_prefix(OFString *prefix, OFArray *namespaces)