From 253144188c968e29b13cbce52d027025a6359ef1 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 29 Aug 2018 09:24:47 -0700 Subject: [PATCH] Purge box art cache on low memory warning --- Limelight/ViewControllers/MainFrameViewController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index 480aaa5..546dcce 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -1026,7 +1026,9 @@ static NSMutableSet* hostList; - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. + + // Purge the box art cache on low memory + [_boxArtCache removeAllObjects]; } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {