@@ -49,21 +49,17 @@ } #ifdef OF_HAVE_FILES - initWithPath: (OFString *)path { - self = [super init]; - + OFFile *file = [[OFFile alloc] initWithPath: path + mode: @"rb"]; @try { - _stream = [[OFFile alloc] initWithPath: path - mode: @"rb"]; - } @catch (id e) { - [self release]; - @throw e; - } - - return self; + return [self initWithStream: file]; + } @finally { + [file release]; + } } #endif - (void)dealloc {