diff --git a/ChangeLog b/ChangeLog index 98e799da9..8c7f4b107 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-09-23 Ivan Vucica + + * Source/NSImage.m: Missing -retain inside the method + -compositeToPoint:fromRect:operation:fraction caused a crash + inside Opal backend. + 2013-09-22 16:52-EDT Gregory John Casamento * Headers/AppKit/NSTableView.h: Add formal protocols for diff --git a/Source/NSImage.m b/Source/NSImage.m index fa9926a45..9e82dbcbc 100644 --- a/Source/NSImage.m +++ b/Source/NSImage.m @@ -750,7 +750,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep) // Set the CTM to the identity matrix with the current translation // and the user space scale factor { - NSAffineTransform *backup = [ctxt GSCurrentCTM]; + NSAffineTransform *backup = [[ctxt GSCurrentCTM] retain]; NSAffineTransform *newTransform = [NSAffineTransform transform]; NSPoint translation = [backup transformPoint: aPoint]; [newTransform translateXBy: translation.x @@ -765,6 +765,8 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep) fraction: delta]; [ctxt GSSetCTM: backup]; + + [backup release]; } }