Differences From Artifact [ab0fe00397]:
- File src/OFLHAArchive.h — part of check-in [f3bdf29f07] at 2022-10-04 22:27:59 on branch trunk — Add of-lha: URI handler (user: js, size: 5451) [annotate] [blame] [check-ins using]
To Artifact [2fb649d2fb]:
- File
src/OFLHAArchive.h
— 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: 5535) [annotate] [blame] [check-ins using]
︙ | |||
30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | + + + + | */ OF_SUBCLASSING_RESTRICTED @interface OFLHAArchive: OFObject { OFStream *_stream; uint_least8_t _mode; OFStringEncoding _encoding; OFLHAArchiveEntry *_Nullable _currentEntry; #ifdef OF_LHA_ARCHIVE_M @public #endif OFStream *_Nullable _lastReturnedStream; } /** * @brief The encoding to use for the archive. Defaults to ISO 8859-1. */ @property (nonatomic) OFStringEncoding encoding; |
︙ |