Permalink
Browse files

Fixed some leaks that were bugging me.

  • Loading branch information...
1 parent 509005f commit 17f113a75a52265f8b7245a141f544cfc843bb39 @stigi stigi committed Oct 11, 2010
Showing with 4 additions and 1 deletion.
  1. +1 −1 MGTemplateEngine.h
  2. +2 −0 MGTemplateEngine.m
  3. +1 −0 MGTemplateStandardMarkers.m
View
@@ -33,7 +33,7 @@
#define MARKER_FILTER_ARGUMENTS_KEY @"filterArgs" // NSArray of filter arguments, if any
#define MARKER_RANGE_KEY @"range" // NSRange (as NSValue) of marker's range
-@protocol MGTemplateEngineMatcher
+@protocol MGTemplateEngineMatcher <NSObject>
@required
- (id)initWithTemplateEngine:(MGTemplateEngine *)engine;
- (void)engineSettingsChanged; // always called at least once before beginning to process a template.
View
@@ -95,6 +95,8 @@ - (void)dealloc
[_markers release];
_markers = nil;
self.delegate = nil;
+ [matcher release];
+ matcher = nil;
[templateContents release];
templateContents = nil;
[_templateVariables release];
@@ -629,6 +629,7 @@ - (void)engineFinishedProcessingTemplate
ifStack = [[NSMutableArray alloc] init];
[commentStack release];
commentStack = [[NSMutableArray alloc] init];
+ [cycles release];
cycles = [[NSMutableDictionary alloc] init];
}

0 comments on commit 17f113a

Please sign in to comment.