mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Fix leaks and a possible buffer overrun
This commit is contained in:
parent
5b46efa8cd
commit
0fb9739f21
4 changed files with 14 additions and 5 deletions
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue