summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
Diffstat (limited to 'macosx')
-rw-r--r--macosx/PcsxrPlugin.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/PcsxrPlugin.m b/macosx/PcsxrPlugin.m
index d0b712de..2d5e99ce 100644
--- a/macosx/PcsxrPlugin.m
+++ b/macosx/PcsxrPlugin.m
@@ -120,6 +120,12 @@
}
}
}
+
+ if (goodPath == nil) {
+ [self autorelease];
+ return nil;
+ }
+
pluginRef = SysLoadLibrary([goodPath fileSystemRepresentation]);
if (pluginRef == nil) {
[self release];