Fix leaks and a possible buffer overrun

This commit is contained in:
rfm 2024-11-17 12:55:55 +00:00
parent 5b46efa8cd
commit 0fb9739f21
4 changed files with 14 additions and 5 deletions

View file

@ -5,7 +5,7 @@
int main()
{
NSAutoreleasePool *arp = [NSAutoreleasePool new];
NSUserDefaults *defs = [NSUserDefaults new];
NSUserDefaults *defs = AUTORELEASE([NSUserDefaults new]);
test_NSObject(@"NSUserDefaults", [NSArray arrayWithObject: defs]);