Skip to content
Browse files

Don't use dealloc method on arc

  • Loading branch information...
1 parent dba9419 commit d750a6f28dd72bfd2267f0f0ea28281ba93646ac @brunow committed Feb 16, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 ITWLoadingPanel/ITWLoadingPanel.m
View
11 ITWLoadingPanel/ITWLoadingPanel.m
@@ -52,10 +52,12 @@ + (id)panel {
instantiateWithOwner:self options:nil] objectAtIndex:0];
return panel;
-
}
+#ifdef ILP_USE_ARC
+ // Do nothing
+#else
////////////////////////////////////////////////////////////////////////////////////////////////////
- (void)dealloc {
self.cancelBtn = nil;
@@ -66,13 +68,10 @@ - (void)dealloc {
self.titleLabel = nil;
self.onCancelBlock = nil;
self.onDisappearBlock = nil;
-
-#ifdef ILP_USE_ARC
- // Do nothing
-#else
+
[super dealloc];
-#endif
}
+#endif
////////////////////////////////////////////////////////////////////////////////////////////////////

0 comments on commit d750a6f

Please sign in to comment.
Something went wrong with that request. Please try again.