diff options
author | ritsuka <[email protected]> | 2013-12-03 17:01:56 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2013-12-03 17:01:56 +0000 |
commit | 037efe2d010f7983cb83879850e276af38d57a80 (patch) | |
tree | c0658d1fbebe5edb7170e72c28fa4ec73d399c74 /macosx/HBPreviewController.m | |
parent | 87ba2a39cc223742796170d87a8563c2e64910d8 (diff) |
MacGUI: Release the cached images when the preview window is closed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5912 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r-- | macosx/HBPreviewController.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m index 8cca74037..9d9d2c6fd 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -283,6 +283,7 @@ typedef enum ViewMode : NSUInteger { [self stopMovieTimer]; } + [self.generator purgeImageCache]; [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"PreviewWindowIsOpen"]; } @@ -634,7 +635,7 @@ typedef enum ViewMode : NSUInteger { { hb_title_t *title = self.title; - NSImage *fPreviewImage = [self.generator imageAtIndex:self.pictureIndex]; + NSImage *fPreviewImage = [self.generator imageAtIndex:self.pictureIndex shouldCache:YES]; NSSize imageScaledSize = [fPreviewImage size]; [self.pictureLayer setContents:fPreviewImage]; |