diff --git a/大鱼调色/Plugin/DYToolCanvasDiagnostics.inc.h b/大鱼调色/Plugin/DYToolCanvasDiagnostics.inc.h index 287facb..d7c5dc7 100644 --- a/大鱼调色/Plugin/DYToolCanvasDiagnostics.inc.h +++ b/大鱼调色/Plugin/DYToolCanvasDiagnostics.inc.h @@ -121,7 +121,8 @@ [[(id)osc valueForKey:@"stampSaving"]boolValue]&&[[viewer valueForKey:@"stampArmed"]boolValue]&& [[(id)osc valueForKey:@"stampHasSource"]boolValue]&&!DYSharedMasks(DYReadTools(base,kCMTimeZero).document).count); drain(); - NSDictionary *stamp=[DYSharedMasks(DYReadTools(host,kCMTimeZero).document) firstObject];NSArray *source=stamp[@"stampSource"]; + NSDictionary *stamp=[DYSharedMasks(DYReadTools(host,kCMTimeZero).document) firstObject]; + NSArray *source=[[stamp[@"stampSource"]copy]autorelease]; DYMaskParameters target=DYMaskAtTime(stamp,kCMTimeZero); run.record(@"native-osc-creates-one-stamp-and-one-undo-from-source-click-and-drag",source.count==4&&fabs([source[0]doubleValue]-.25)<1e-6&&fabs([source[1]doubleValue]-.25)<1e-6&&fabs(target.centerX-.65)<1e-6&&fabs(target.centerY-.5)<1e-6&&base->_undoStarts==undo+1&&base->_undoEnds==undo+1); run.record(@"native-osc-stamp-selects-saved-overlay-when-action-time-differs", @@ -164,7 +165,7 @@ click(251,104);drain(); // top-down viewport y=30...345, forward button is x=212...290. run.record(@"native-osc-stamp-forward-action-starts-the-existing-host-tracker",host->_forwardStarts==1&&host->_backwardStarts==0); [plugin cleanupAnalysis:nil];drain(); - NSDictionary *beforeRejected=DYReadTools(base,kCMTimeZero).document; + NSDictionary *beforeRejected=[[DYReadTools(base,kCMTimeZero).document copy]autorelease]; base->_rejectToolsWrites=YES; click(NSMidX(button),400-NSMidY(button)); click(180,291.25);