Skip to content

Commit

Permalink
Merge pull request steipete#40 from fpillet/master
Browse files Browse the repository at this point in the history
Bugfix: cleanup didn't unswizzle classes that had already been swizzled
  • Loading branch information
steipete committed Apr 1, 2015
2 parents b05702a + 7d2cdf5 commit 3fcc13a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Aspects.m
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ static void aspect_cleanupHookedClassAndSelector(NSObject *self, SEL selector) {
// Class is most likely swizzled in place. Undo that.
if (isMetaClass) {
aspect_undoSwizzleClassInPlace((Class)self);
}else if (self.class != klass) {
aspect_undoSwizzleClassInPlace(klass);
}
}
}
Expand Down

0 comments on commit 3fcc13a

Please sign in to comment.