Differences From Artifact [7d50694f14]:
- File
src/OFLHAArchive.m
— part of check-in
[b53baf71ad]
at
2022-10-06 23:18:06
on branch trunk
— OFLHAArchive: Make returned streams retain archive
In order to not create a retain cycle, this changes the reference to the
last returned stream to an unsafe unretained one that the stream itself
resets to nil in its dealloc. (user: js, size: 12736) [annotate] [blame] [check-ins using]
To Artifact [3876237eb4]:
- File src/OFLHAArchive.m — part of check-in [55858a10bb] at 2022-10-08 23:47:33 on branch trunk — Move all archive URI handling to a single file (user: js, size: 12785) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include "config.h" #include <errno.h> #import "OFLHAArchive.h" #import "OFLHAArchiveEntry.h" #import "OFLHAArchiveEntry+Private.h" #import "OFCRC16.h" #import "OFLHADecompressingStream.h" #import "OFSeekableStream.h" #import "OFStream.h" #import "OFString.h" #import "OFURI.h" #import "OFURIHandler.h" | > | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #include "config.h" #include <errno.h> #import "OFLHAArchive.h" #import "OFLHAArchiveEntry.h" #import "OFLHAArchiveEntry+Private.h" #import "OFArchiveURIHandler.h" #import "OFCRC16.h" #import "OFLHADecompressingStream.h" #import "OFSeekableStream.h" #import "OFStream.h" #import "OFString.h" #import "OFURI.h" #import "OFURIHandler.h" |
︙ | ︙ | |||
90 91 92 93 94 95 96 | + (instancetype)archiveWithURI: (OFURI *)URI mode: (OFString *)mode { return [[[self alloc] initWithURI: URI mode: mode] autorelease]; } + (OFURI *)URIForFile: (OFString *)path inArchive: (OFURI *)archive { | | | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | + (instancetype)archiveWithURI: (OFURI *)URI mode: (OFString *)mode { return [[[self alloc] initWithURI: URI mode: mode] autorelease]; } + (OFURI *)URIForFile: (OFString *)path inArchive: (OFURI *)archive { return OFArchiveURIHandlerURIForFileInArchive(@"of-lha", path, archive); } - (instancetype)init { OF_INVALID_INIT_METHOD } |
︙ | ︙ |