Use one autorelease pool per frame
This way, nowhere else autorelease pools need to be managed. FossilOrigin-Name: 489124a92fd2a7e6d543b58ce50e454f2cb1647c81b4ba637d6c252404012ddd
This commit is contained in:
parent
a67b134eb2
commit
875c395ce1
22 changed files with 1262 additions and 1443 deletions
|
@ -45,14 +45,12 @@ getint(uchar *&p)
|
|||
void
|
||||
sendstring(OFString *t_, uchar *&p)
|
||||
{
|
||||
@autoreleasepool {
|
||||
const char *t = t_.UTF8String;
|
||||
const char *t = t_.UTF8String;
|
||||
|
||||
for (size_t i = 0; i < _MAXDEFSTR && *t != '\0'; i++)
|
||||
putint(p, *t++);
|
||||
for (size_t i = 0; i < _MAXDEFSTR && *t != '\0'; i++)
|
||||
putint(p, *t++);
|
||||
|
||||
putint(p, 0);
|
||||
}
|
||||
putint(p, 0);
|
||||
}
|
||||
|
||||
static const OFString *modenames[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue