Overview
Comment: | OFConcreteData: Fix freeWhenDone not being set
This resulted in a memory leak. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c07f192cfa618092aa66f96ceeac2125 |
User & Date: | js on 2023-09-13 22:05:09 |
Other Links: | manifest | tags |
Context
2023-09-13
| ||
22:11 | Update ChangeLog check-in: 1b644a12b8 user: js tags: trunk | |
22:05 | OFConcreteData: Fix freeWhenDone not being set check-in: c07f192cfa user: js tags: trunk | |
22:00 | -[OFData initWithContentsOfIRI:]: Fix memory leak check-in: 082c0f8d0f user: js tags: trunk | |
Changes
Modified src/OFConcreteData.m from [2174d3a707] to [2b3ef496b7].
︙ | ︙ | |||
34 35 36 37 38 39 40 41 42 43 44 45 46 47 | self = [super init]; @try { if (itemSize == 0) @throw [OFInvalidArgumentException exception]; _itemSize = itemSize; } @catch (id e) { [self release]; @throw e; } return self; } | > | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | self = [super init]; @try { if (itemSize == 0) @throw [OFInvalidArgumentException exception]; _itemSize = itemSize; _freeWhenDone = true; } @catch (id e) { [self release]; @throw e; } return self; } |
︙ | ︙ |