aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContentFilterController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableContentFilterController.m')
-rw-r--r--Source/SPTableContentFilterController.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPTableContentFilterController.m b/Source/SPTableContentFilterController.m
index 6c8d16bc..ef11b3d3 100644
--- a/Source/SPTableContentFilterController.m
+++ b/Source/SPTableContentFilterController.m
@@ -366,7 +366,9 @@ static void _addIfNotNil(NSMutableArray *array, id toAdd);
target = nil;
action = NULL;
+ // Init default filters for Content Browser
contentFilters = [[NSMutableDictionary alloc] init];
+ numberOfDefaultFilters = [[NSMutableDictionary alloc] init];
NSError *readError = nil;
NSString *filePath = [NSBundle pathForResource:@"ContentFilters.plist" ofType:nil inDirectory:[[NSBundle mainBundle] bundlePath]];
@@ -670,6 +672,8 @@ static void _addIfNotNil(NSMutableArray *array, id toAdd);
[[NSNotificationCenter defaultCenter] removeObserver:self];
SPClear(model);
SPClear(columns);
+ SPClear(contentFilters);
+ SPClear(numberOfDefaultFilters);
[super dealloc];
}