Skip to content

Commit

Permalink
fixed the crash - added retaining feature
Browse files Browse the repository at this point in the history
  • Loading branch information
SunYeop Lee committed Dec 26, 2014
1 parent 2e38d7a commit 86eb977
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added PassChanger/.DS_Store
Binary file not shown.
10 changes: 6 additions & 4 deletions PassChanger/Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ NSString *wrongPass = nil;

//IF the original method returned false (remember, the method we're hooking is a bool),
if (!originalValue) {

//THEN set the string wrongPass (which we defined earlier) to the custom argument 'passEntered'.
//wrongPass = passEntered;
wrongPass = [NSString stringWithString:passEntered];
if(wrongPass) {
[wrongPass release];
}

//THEN set the string wrongPass (which we defined earlier) to the custom argument 'passEntered'.
wrongPass = [passEntered retain];

}

Expand Down
2 changes: 1 addition & 1 deletion PassChanger/theos

0 comments on commit 86eb977

Please sign in to comment.