(mframe_build_return): In accordance with Objective C runtime

change, use objc_malloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1724 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-09-07 20:04:13 +00:00
parent 6136f85175
commit a22a1fc4b8

View file

@ -833,7 +833,7 @@ mframe_build_return (arglist_t argframe,
tmptype++; tmptype++;
/* Allocate some memory to hold the value we're pointing to. */ /* Allocate some memory to hold the value we're pointing to. */
*(void**)retframe = *(void**)retframe =
(*objc_malloc) (objc_sizeof_type (tmptype)); objc_malloc (objc_sizeof_type (tmptype));
/* We are responsible for making sure this memory gets free'd /* We are responsible for making sure this memory gets free'd
eventually. Ask MallocAddress class to autorelease it. */ eventually. Ask MallocAddress class to autorelease it. */
[MallocAddress autoreleaseMallocAddress: *(void**)retframe]; [MallocAddress autoreleaseMallocAddress: *(void**)retframe];