Permalink
Browse files

Fix a crash

  • Loading branch information...
1 parent fcdb977 commit 0caaee7475705075b82c60bf5022b6981fb04533 @eelco eelco committed Jun 21, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 NSString+Hyphenate.m
View
@@ -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);

0 comments on commit 0caaee7

Please sign in to comment.