diff --git a/ChangeLog b/ChangeLog index aa5179acd..a07213a15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-13 Richard Frith-Macdonald + + * Source/NSAutoreleasePool.m; use ([+instanceMethodForSelector:]) + to cache release method implementation for a class. + 2008-03-13 Richard Frith-Macdonald * Source/NSKeyValueCoding.m: diff --git a/Source/NSAutoreleasePool.m b/Source/NSAutoreleasePool.m index 22698e5cf..fc16e466d 100644 --- a/Source/NSAutoreleasePool.m +++ b/Source/NSAutoreleasePool.m @@ -410,7 +410,7 @@ static IMP initImp; if (GSObjCIsInstance(anObject)) { - imp = [anObject methodForSelector: releaseSel]; + imp = [c instanceMethodForSelector: releaseSel]; } else {