Permalink
Browse files

fixes issues 2 and 3

  • Loading branch information...
1 parent 37cf350 commit fb9bc10416b7de50fa04de468040c0b9c6247ee2 @parisman parisman committed Aug 23, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 Classes/NSString_HTML.m
View
4 Classes/NSString_HTML.m
@@ -272,7 +272,7 @@ -(NSString*)stringByReplacingEntities{
-(NSDictionary*)parseElementAttributesWithRange:(NSRange) range caseSensative:(BOOL)caseSensative{
- NSMutableDictionary* attributes = [[NSMutableDictionary alloc] initWithCapacity: 8];
+ NSMutableDictionary* attributes = [[[NSMutableDictionary alloc] initWithCapacity: 8] autorelease];
CFStringInlineBuffer localBuffer;
CFStringInitInlineBuffer((CFStringRef)self, &localBuffer, CFRangeMake(range.location, range.length));
@@ -371,7 +371,7 @@ +(void)parseHTML:(NSString*)source delegate:(id)delegate selector:(SEL)selector
while (delegateWantsToContinue && (c = CFStringGetCharacterFromInlineBuffer(&buffer, index))){
int tagLen;
- int len;
+ int len = 0;
int interior;
Chunk* chunk = nil;
Chunk* partialChunk = nil;

0 comments on commit fb9bc10

Please sign in to comment.