Differences From Artifact [f4fafd457a]:
- File src/OFObject+KeyValueCoding.m — part of check-in [10fbb20fd6] at 2016-06-05 16:00:07 on branch trunk — Key Value Coding: Add fallback to isFoo (user: js, size: 5601) [annotate] [blame] [check-ins using]
To Artifact [6d4c66aa16]:
- File
src/OFObject+KeyValueCoding.m
— part of check-in
[49ed0fa5ec]
at
2016-06-05 16:04:11
on branch trunk
— Key Value Coding: Make sure free is always called
In theory, if -[UTF8String] would throw, this could leak. (user: js, size: 5664) [annotate] [blame] [check-ins using]
︙ | |||
55 56 57 58 59 60 61 | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | + - - - + + + - + - - - + + + + | if ((keyLength = [key UTF8StringLength]) < 1) return [self valueForUndefinedKey: key]; if ((name = malloc(keyLength + 3)) == NULL) @throw [OFOutOfMemoryException exceptionWithRequestedSize: keyLength + 3]; @try { |
︙ | |||
135 136 137 138 139 140 141 | 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | + - - - + + + - + - - - + + + + | return; } if ((name = malloc(keyLength + 5)) == NULL) @throw [OFOutOfMemoryException exceptionWithRequestedSize: keyLength + 5]; @try { |
︙ |