Permalink
Browse files

Fix memory leak

  • Loading branch information...
1 parent cffa932 commit 94c00c8c5a0dc58d91a8d40440b75de493af7967 @groue committed Aug 30, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/classes/GRMustacheToken.m
@@ -42,7 +42,7 @@ @implementation GRMustacheToken
- (void)dealloc
{
- [_value.object release];
+ NSLog(@"dealloc GRMustacheToken %d", _type);
[_templateString release];
[_templateID release];
[super dealloc];
@@ -61,12 +61,13 @@ - (id)initWithType:(GRMustacheTokenType)type value:(GRMustacheTokenValue)value t
self = [self init];
if (self) {
_type = type;
- _value = value; [_value.object retain];
+ _value = value;
_templateString = [templateString retain];
_templateID = [templateID retain];
_line = line;
_range = range;
}
+ NSLog(@"init GRMustacheToken %d", _type);
return self;
}

0 comments on commit 94c00c8

Please sign in to comment.