Differences From Artifact [d33bd24f84]:
- File
src/OFTarArchive.m
— part of check-in
[6c08b57605]
at
2022-10-06 23:33:25
on branch trunk
— OFTarArchive: 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: 10921) [annotate] [blame] [check-ins using]
To Artifact [4c749d1fe6]:
- File src/OFTarArchive.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: 10970) [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 "OFTarArchive.h" #import "OFTarArchiveEntry.h" #import "OFTarArchiveEntry+Private.h" #import "OFDate.h" #import "OFSeekableStream.h" #import "OFStream.h" #import "OFURI.h" #import "OFURIHandler.h" #import "OFInvalidArgumentException.h" | > | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #include "config.h" #include <errno.h> #import "OFTarArchive.h" #import "OFTarArchiveEntry.h" #import "OFTarArchiveEntry+Private.h" #import "OFArchiveURIHandler.h" #import "OFDate.h" #import "OFSeekableStream.h" #import "OFStream.h" #import "OFURI.h" #import "OFURIHandler.h" #import "OFInvalidArgumentException.h" |
︙ | ︙ | |||
76 77 78 79 80 81 82 | + (instancetype)archiveWithURI: (OFURI *)URI mode: (OFString *)mode { return [[[self alloc] initWithURI: URI mode: mode] autorelease]; } + (OFURI *)URIForFile: (OFString *)path inArchive: (OFURI *)archive { | | | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | + (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-tar", path, archive); } - (instancetype)init { OF_INVALID_INIT_METHOD } |
︙ | ︙ |