re PR libobjc/12155 (Memory leak in libobjc(selector.c))
2004-01-14 Adam Fedor <fedor@gnu.org> PR libobjc/12155 * selector.c (__objc_register_instance_methods_to_class): Free new_list if not used. From-SVN: r75899
This commit is contained in:
parent
cc8c7495d4
commit
5af0e6ae63
|
@ -1,3 +1,9 @@
|
|||
2004-01-14 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
PR libobjc/12155
|
||||
* selector.c (__objc_register_instance_methods_to_class): Free
|
||||
new_list if not used.
|
||||
|
||||
2004-01-09 Andrew Ruder <aeruder@ksu.edu>
|
||||
|
||||
PR libobjc/11904
|
||||
|
|
|
@ -148,6 +148,8 @@ void __objc_register_instance_methods_to_class (Class class)
|
|||
new_list->method_next = class->class_pointer->methods;
|
||||
class->class_pointer->methods = new_list;
|
||||
}
|
||||
else
|
||||
objc_free(new_list);
|
||||
|
||||
__objc_update_dispatch_table_for_class (class->class_pointer);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue