Differences From Artifact [329955234f]:
- File
src/OFString+URLEncoding.m
— part of check-in
[a2b4238850]
at
2020-11-06 02:24:14
on branch trunk
— Future-proof some code using freeWhenDone
While -[OFData initWithDataNoCopy:count:itemSize:freeWhenDone:] can
currently never throw, it might in the future, and when it does so in
the future, these would be memory leaks then. (user: js, size: 3584) [annotate] [blame] [check-ins using] [more...]
To Artifact [387a1fe7bd]:
- File
src/OFString+URLEncoding.m
— part of check-in
[627511b032]
at
2020-11-14 12:23:55
on branch trunk
— Rename of_malloc and of_calloc
The new names should be more accurate. (user: js, size: 3583) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
85 86 87 88 89 90 91 | const char *string = self.UTF8String; size_t length = self.UTF8StringLength; char *retCString; char byte = 0; int state = 0; size_t i = 0; | | | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | const char *string = self.UTF8String; size_t length = self.UTF8StringLength; char *retCString; char byte = 0; int state = 0; size_t i = 0; retCString = of_alloc(length + 1, 1); while (length--) { char c = *string++; switch (state) { case 0: if (c == '%') |
︙ | ︙ |