Fixes for tests with weak pointers in notification observers.

This commit is contained in:
rfm 2024-12-27 13:11:10 +00:00
parent b41e352662
commit 0ede979d15
5 changed files with 15 additions and 6 deletions

View file

@ -2486,6 +2486,10 @@ static id gs_weak_load(id obj)
}
return c;
}
- (NSUInteger) retainCount
{
return 0; // So that gs_weak_load() knows the object was deallocated
}
- (void) logZombie: (SEL)selector
{
GSLogZombie(self, selector);