mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 05:30:47 +00:00
* Source/NSImage.m: Missing -retain inside the method
-compositeToPoint:fromRect:operation:fraction caused a crash inside Opal backend. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37140 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3ee6f49b1a
commit
7cd5676bb5
2 changed files with 9 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue