Permalink
Browse files

adding Facebook cache image removal to Document instance (cleanup)

  • Loading branch information...
ByteProject committed Jul 3, 2015
1 parent 06decd8 commit 5efeae997b7afc100ba21f565121f0d537f331e9
Showing with 4 additions and 1 deletion.
  1. +4 −1 Classes/SVBlockDrawDocument.m
@@ -406,10 +406,13 @@ - (void)windowWillClose:(NSNotification *)notification
}
}
// Also wipe Twitter image cache files.
// Also wipe social image cache files.
if ([fileManager fileExistsAtPath:self.twitterCacheFile]) {
[fileManager removeItemAtPath:self.twitterCacheFile error:nil];
}
if ([fileManager fileExistsAtPath:self.facebookCacheFile]) {
[fileManager removeItemAtPath:self.facebookCacheFile error:nil];
}
// Finally nuke export cache files
if ([fileManager fileExistsAtPath:self.exportCacheFile]) {

0 comments on commit 5efeae9

Please sign in to comment.