From 828ae66a450871bfdf159c8b1c91e76dfcaef699 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 27 Jul 2015 21:17:53 -0400 Subject: [PATCH] It appears ARC extends its reach into C++ nowadays. Fixed additional retain cycle. --- OSBindings/Mac/Clock Signal/CSAtari2600.mm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/OSBindings/Mac/Clock Signal/CSAtari2600.mm b/OSBindings/Mac/Clock Signal/CSAtari2600.mm index 8514c5a69..adb593afe 100644 --- a/OSBindings/Mac/Clock Signal/CSAtari2600.mm +++ b/OSBindings/Mac/Clock Signal/CSAtari2600.mm @@ -14,7 +14,7 @@ @end struct Atari2600CRTDelegate: public Outputs::CRT::CRTDelegate { - CSAtari2600 *atari; + __weak CSAtari2600 *atari; void crt_did_end_frame(Outputs::CRT *crt, CRTFrame *frame) { [atari crtDidEndFrame:frame]; } }; @@ -62,8 +62,4 @@ struct Atari2600CRTDelegate: public Outputs::CRT::CRTDelegate { return self; } -- (void)dealloc { - NSLog(@""); -} - @end