From dd7da2fae96b9ba6bdbc28f7b26469373801f21e Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Thu, 4 Jul 2013 03:07:44 +0000 Subject: Make the plug-ins use ARC in 64-bit mode. Change how the preprocessor macros are managed on OS X. Set the name of the product to the target name. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85795 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/DFNet/macsrc/SockDialog.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'macosx/plugins/DFNet/macsrc/SockDialog.m') diff --git a/macosx/plugins/DFNet/macsrc/SockDialog.m b/macosx/plugins/DFNet/macsrc/SockDialog.m index feee77d8..f175e7fa 100755 --- a/macosx/plugins/DFNet/macsrc/SockDialog.m +++ b/macosx/plugins/DFNet/macsrc/SockDialog.m @@ -10,6 +10,7 @@ #include "dfnet.h" #import "EmuThread.h" +#import "ARCBridge.h" void SysMessage(const char *fmt, ...) { @@ -72,7 +73,8 @@ void sockDestroyWaitDlg() dispatch_sync(dispatch_get_main_queue(), ^{ if (globalSock != nil) { [globalSock close]; - [globalSock release]; + + RELEASEOBJ(globalSock); globalSock = nil; } }); @@ -92,10 +94,12 @@ void sockDestroyWaitDlg() return self; } +#if !__has_feature(objc_arc) -(void)dealloc { [super dealloc]; } +#endif @end -- cgit v1.2.3