mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-04 20:00:40 +00:00
* Source/NSImage.m: Missing -retain inside the method
-drawInRect:fromRect:... caused a crash inside Opal backend. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37141 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7cd5676bb5
commit
b75ea68510
2 changed files with 6 additions and 2 deletions
|
@ -1,8 +1,11 @@
|
||||||
2013-09-23 Ivan Vucica <ivan@vucica.net>
|
2013-09-23 Ivan Vucica <ivan@vucica.net>
|
||||||
|
|
||||||
* Source/NSImage.m: Missing -retain inside the method
|
* Source/NSImage.m: Missing -retain inside the method
|
||||||
-compositeToPoint:fromRect:operation:fraction caused a crash
|
-compositeToPoint:fromRect:operation:fraction: caused a crash
|
||||||
inside Opal backend.
|
inside Opal backend.
|
||||||
|
|
||||||
|
* Source/NSImage.m: Missing -retain inside the method
|
||||||
|
-drawInRect:fromRect:... caused a crash inside Opal backend.
|
||||||
|
|
||||||
2013-09-22 16:52-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
2013-09-22 16:52-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
|
|
|
@ -849,7 +849,7 @@ Fallback for backends other than Cairo. */
|
||||||
{
|
{
|
||||||
NSAffineTransform *newXform;
|
NSAffineTransform *newXform;
|
||||||
|
|
||||||
backup = [ctx GSCurrentCTM];
|
backup = [[ctx GSCurrentCTM] retain];
|
||||||
|
|
||||||
newXform = [backup copy];
|
newXform = [backup copy];
|
||||||
[newXform translateXBy: dstRect.origin.x yBy: dstRect.origin.y + dstRect.size.height];
|
[newXform translateXBy: dstRect.origin.x yBy: dstRect.origin.y + dstRect.size.height];
|
||||||
|
@ -876,6 +876,7 @@ Fallback for backends other than Cairo. */
|
||||||
if (compensateForFlip)
|
if (compensateForFlip)
|
||||||
{
|
{
|
||||||
[ctx GSSetCTM: backup];
|
[ctx GSSetCTM: backup];
|
||||||
|
[backup release];
|
||||||
}
|
}
|
||||||
|
|
||||||
return YES;
|
return YES;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue