Skip to content

Commit 9896b5b

Browse files
committed
修复极端情况下内存不释放bug
1 parent c3213fc commit 9896b5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DDZombieMonitor/DDZombieMonitor.mm

+2
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ - (void)newDealloc:(__unsafe_unretained id)obj {
160160
if (item) {
161161
[self freeZombieObject:item];
162162
}
163+
} else {
164+
[obj performSelector:@selector(hy_originalDealloc)];
163165
}
164166
} else {
165167
[obj performSelector:@selector(hy_originalDealloc)];

0 commit comments

Comments
 (0)