summaryrefslogtreecommitdiff
path: root/macosx/Source/PcsxrMemoryObject.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-08-19 21:34:08 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-08-19 21:34:08 +0000
commit7fa0b5b48181f4f388be3ac31b4c4310c59bb2b5 (patch)
tree8f3f24f7cfa57b23da8c532acd77e4fee8cb9fb3 /macosx/Source/PcsxrMemoryObject.m
parentd37764cdea753d0d1fac4eb8f52338ffdd94889c (diff)
downloadpcsxr-7fa0b5b48181f4f388be3ac31b4c4310c59bb2b5.tar.gz
OS X: attempt to fix the QuickLook plug-in.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@91264 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/Source/PcsxrMemoryObject.m')
-rw-r--r--macosx/Source/PcsxrMemoryObject.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/Source/PcsxrMemoryObject.m b/macosx/Source/PcsxrMemoryObject.m
index 64ac1e10..a04a4379 100644
--- a/macosx/Source/PcsxrMemoryObject.m
+++ b/macosx/Source/PcsxrMemoryObject.m
@@ -31,7 +31,7 @@ NSString *const memoryAnimateTimerKey = @"PCSXR Memory Card Image Animate";
NSMutableArray *imagesArray = [[NSMutableArray alloc] initWithCapacity:block->IconCount];
for (int i = 0; i < block->IconCount; i++) {
NSImage *memImage;
- {
+ @autoreleasepool {
NSBitmapImageRep *imageRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL pixelsWide:16 pixelsHigh:16 bitsPerSample:8 samplesPerPixel:3 hasAlpha:NO isPlanar:NO colorSpaceName:NSCalibratedRGBColorSpace bytesPerRow:0 bitsPerPixel:0];
short *icon = block->Icon;