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