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
2 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue