Skip to content

Commit

Permalink
Fix a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
eelco committed Jun 21, 2010
1 parent fcdb977 commit 0caaee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NSString+Hyphenate.m
Expand Up @@ -139,7 +139,7 @@ - (NSString*)stringByHyphenatingWithLocale:(NSLocale*)locale {
// Clean up
free(hyphens);
if (rep) {
for (i = 0; i < [self length]; i++) {
for (i = 0; i < wordLength; i++) {
if (rep[i]) free(rep[i]);
}
free(rep);
Expand Down

0 comments on commit 0caaee7

Please sign in to comment.