From 6bb680470c99469ecdc6f9d566e054e808203cae Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Mon, 15 Aug 2011 03:15:07 +0200 Subject: [PATCH] Must use Block_{copy,release} to be GC compliant --- Medianno/MAAppController.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Medianno/MAAppController.mm b/Medianno/MAAppController.mm index 499b780..66839c3 100644 --- a/Medianno/MAAppController.mm +++ b/Medianno/MAAppController.mm @@ -17,14 +17,14 @@ modalForWindow: docWindow modalDelegate: self didEndSelector: @selector(my_blockSheetDidEnd:returnCode:contextInfo:) - contextInfo: [block copy]]; + contextInfo: Block_copy(block)]; } - (void)my_blockSheetDidEnd: (NSWindow *)sheet returnCode: (NSInteger)returnCode contextInfo: (void *)contextInfo { MASheetBlock block = (MASheetBlock)contextInfo; block(returnCode); - [block release]; + Block_release(block); } @end