mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Memory leak fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10265 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8970541166
commit
96aee78f1a
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-06-27 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/callframe.m: callframe_do_call_opts(),
|
||||
callframe_build_return_opts() fixed memory leaks.
|
||||
|
||||
2001-06-26 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSUserDefaults.m (+userLanguages): On MingW systems, check
|
||||
|
|
|
@ -558,6 +558,10 @@ callframe_do_call_opts (const char *encoded_types,
|
|||
}
|
||||
}
|
||||
|
||||
if (retval != 0)
|
||||
NSZoneFree(NSDefaultMallocZone(), retval);
|
||||
callframe_free(cframe);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -758,7 +762,12 @@ callframe_build_return_opts (NSInvocation *inv,
|
|||
}
|
||||
(*decoder) (0, 0, 0, 0); /* Tell it we have finished. */
|
||||
}
|
||||
|
||||
if (retval != 0)
|
||||
NSZoneFree(NSDefaultMallocZone(), retval);
|
||||
callframe_free(cframe);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue