Fix a few testcase leaks

This commit is contained in:
rfm 2025-01-01 15:03:52 +00:00
parent 96a719ae20
commit 3a3a8c47c9
3 changed files with 7 additions and 3 deletions

View file

@ -11,7 +11,7 @@ int main(int argc, char **argv)
{
CREATE_AUTORELEASE_POOL(arp);
NSRect f = NSMakeRect(0,0,100,100);
NSView *v = [[NSView alloc] initWithFrame: f];
NSView *v = AUTORELEASE([[NSView alloc] initWithFrame: f]);
int passed = 1;
if (!NSEqualRects([v visibleRect], f))