summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macosx/Pcsxr-QL/GeneratePreviewForURL.m2
-rw-r--r--macosx/Pcsxr-QL/Pcsxr-QL-Info.plist4
-rw-r--r--macosx/Source/PcsxrMemoryObject.m2
3 files changed, 4 insertions, 4 deletions
diff --git a/macosx/Pcsxr-QL/GeneratePreviewForURL.m b/macosx/Pcsxr-QL/GeneratePreviewForURL.m
index e81492f0..a1db02c7 100644
--- a/macosx/Pcsxr-QL/GeneratePreviewForURL.m
+++ b/macosx/Pcsxr-QL/GeneratePreviewForURL.m
@@ -148,7 +148,7 @@ static OSStatus GeneratePreviewForMemCard(void *thisInterface, QLPreviewRequestR
NSDictionary *previewDict =
@{(NSString *)kQLPreviewPropertyAttachmentsKey: htmlDict,
(NSString *)kQLPreviewPropertyDisplayNameKey: [url lastPathComponent],
- (NSString *)kQLPreviewPropertyWidthKey: @400};
+ (NSString *)kQLPreviewPropertyWidthKey: @600};
QLPreviewRequestSetDataRepresentation(preview, (__bridge CFDataRef)(data), kUTTypeHTML, (__bridge CFDictionaryRef)(previewDict));
diff --git a/macosx/Pcsxr-QL/Pcsxr-QL-Info.plist b/macosx/Pcsxr-QL/Pcsxr-QL-Info.plist
index d19f598e..5d37108f 100644
--- a/macosx/Pcsxr-QL/Pcsxr-QL-Info.plist
+++ b/macosx/Pcsxr-QL/Pcsxr-QL-Info.plist
@@ -50,9 +50,9 @@
<key>QLNeedsToBeRunInMainThread</key>
<false/>
<key>QLPreviewHeight</key>
- <real>600</real>
+ <integer>600</integer>
<key>QLPreviewWidth</key>
- <real>800</real>
+ <integer>600</integer>
<key>QLSupportsConcurrentRequests</key>
<false/>
<key>QLThumbnailMinimumSize</key>
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;