Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed some leaks that were bugging me.

  • Loading branch information...
commit 17f113a75a52265f8b7245a141f544cfc843bb39 1 parent 509005f
@stigi stigi authored
View
2  MGTemplateEngine.h
@@ -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
2  MGTemplateEngine.m
@@ -95,6 +95,8 @@ - (void)dealloc
[_markers release];
_markers = nil;
self.delegate = nil;
+ [matcher release];
+ matcher = nil;
[templateContents release];
templateContents = nil;
[_templateVariables release];
View
1  MGTemplateStandardMarkers.m
@@ -629,6 +629,7 @@ - (void)engineFinishedProcessingTemplate
ifStack = [[NSMutableArray alloc] init];
[commentStack release];
commentStack = [[NSMutableArray alloc] init];
+ [cycles release];
cycles = [[NSMutableDictionary alloc] init];
}
Please sign in to comment.
Something went wrong with that request. Please try again.