@@ -94,11 +94,11 @@ i += clen; } @try { nstr = [self allocMemoryWithSize: nlen + 1]; - } @catch (OFException *e) { + } @catch (id e) { [self freeMemory: ustr]; @throw e; } j = 0; @@ -470,11 +470,11 @@ @try { tmp = [self resizeMemory: tmp toSize: tmp_len + i - last + repl_len + 1]; - } @catch (OFException *e) { + } @catch (id e) { [self freeMemory: tmp]; @throw e; } memcpy(tmp + tmp_len, string + last, i - last); memcpy(tmp + tmp_len + i - last, repl_c, repl_len); @@ -484,11 +484,11 @@ } @try { tmp = [self resizeMemory: tmp toSize: tmp_len + length - last + 1]; - } @catch (OFException *e) { + } @catch (id e) { [self freeMemory: tmp]; @throw e; } memcpy(tmp + tmp_len, string + last, length - last); tmp_len += length - last;