mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
* Source/Additions/GSObjCRuntime.m
(GSAppendMethodToList): Copy type information for the NeXT runtime. (GSRemoveMethodFromList): Add comment about potential minor leak. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20074 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
52ef6a0c5b
commit
61bc272015
2 changed files with 8 additions and 1 deletions
|
@ -7,6 +7,10 @@
|
||||||
|
|
||||||
* Headers/Additions/GNUstepBase/GSObjCRuntime.h: Define encoding
|
* Headers/Additions/GNUstepBase/GSObjCRuntime.h: Define encoding
|
||||||
macros for the NeXT runtime.
|
macros for the NeXT runtime.
|
||||||
|
|
||||||
|
* Source/Additions/GSObjCRuntime.m
|
||||||
|
(GSAppendMethodToList): Copy type information for NeXT_RUNTIME.
|
||||||
|
(GSRemoveMethodFromList): Add comment about potential minor leak.
|
||||||
|
|
||||||
2004-09-14 Richard Frith-Macdonald <rfm@gnu.org>
|
2004-09-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -878,7 +878,7 @@ GSAppendMethodToList (GSMethodList list,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
list->method_list[num].method_name = sel;
|
list->method_list[num].method_name = sel;
|
||||||
list->method_list[num].method_types = types;
|
list->method_list[num].method_types = strdup(types);
|
||||||
list->method_list[num].method_imp = imp;
|
list->method_list[num].method_imp = imp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -921,6 +921,9 @@ GSRemoveMethodFromList (GSMethodList list,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clear the last entry. */
|
/* Clear the last entry. */
|
||||||
|
/* NB: For the NeXT_RUNTIME we may leak the types
|
||||||
|
if they were set by GSAppendMethodFromList. Yet
|
||||||
|
as we can not determine the origin, we shall leak. */
|
||||||
list->method_list[i].method_name = 0;
|
list->method_list[i].method_name = 0;
|
||||||
list->method_list[i].method_types = 0;
|
list->method_list[i].method_types = 0;
|
||||||
list->method_list[i].method_imp = 0;
|
list->method_list[i].method_imp = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue