Merge branch 'BugFix-BlockCopy' into Feature-CurTime

This commit is contained in:
Matthias Neeracher 2011-08-15 03:24:34 +02:00
commit 93c55ad866

View File

@ -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