We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0996862 commit d86f7d5Copy full SHA for d86f7d5
MLeaksFinder/MLeaksFinder.h
@@ -16,7 +16,7 @@
16
#define _INTERNAL_MLF_ENABLED DEBUG
17
#endif
18
19
-//#define MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED 0
+//#define MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED 1
20
21
#ifdef MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED
22
#define _INTERNAL_MLF_RC_ENABLED MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED
MLeaksFinder/UIViewController+MemoryLeak.m
@@ -59,7 +59,10 @@ - (BOOL)willDealloc {
59
60
[self willReleaseChildren:self.childViewControllers];
61
[self willReleaseChild:self.presentedViewController];
62
- [self willReleaseChild:self.view];
+
63
+ if (self.isViewLoaded) {
64
+ [self willReleaseChild:self.view];
65
+ }
66
67
return YES;
68
}
0 commit comments