ObjFW  Diff

Differences From Artifact [8c89569c12]:

To Artifact [de5a95ce6d]:


50
51
52
53
54
55
56
57
58
59
60


61
62
63
64
65
66
67

#ifdef OF_HAVE_FILES
- initWithPath: (OFString *)path
{
	OFFile *file = [[OFFile alloc] initWithPath: path
					       mode: @"rb"];
	@try {
		return [self initWithStream: file];
	} @finally {
		[file release];
	}


}
#endif

- (void)dealloc
{
	[_stream release];
	[_lastReturnedEntry release];







|



>
>







50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

#ifdef OF_HAVE_FILES
- initWithPath: (OFString *)path
{
	OFFile *file = [[OFFile alloc] initWithPath: path
					       mode: @"rb"];
	@try {
		self = [self initWithStream: file];
	} @finally {
		[file release];
	}

	return self;
}
#endif

- (void)dealloc
{
	[_stream release];
	[_lastReturnedEntry release];