Implement dealloc/copyWithZone on Win32CairoGState instance.

Patch by mlytwyn (cherrypicked from testplant branch, r39618).

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@39635 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Ivan Vučica 2016-04-06 20:43:29 +00:00
parent 61d519425f
commit d1d1db4c39
2 changed files with 17 additions and 0 deletions

View file

@ -4,6 +4,10 @@
Remove extraneous semicolons.
Patch by mlytwyn (cherrypicked from testplant branch, r39614).
* Source/cairo/Win32CairoGState.m:
Implement dealloc/copyWithZone on Win32CairoGState instance.
Patch by mlytwyn (cherrypicked from testplant branch, r39618).
2016-03-01 Seong Gu Lee <sgleehd@gmail.com>
* Headers/win32/WIN32Server.h: tweak for compilation on 64bit windows

View file

@ -37,6 +37,19 @@
}
}
- (void) dealloc
{
DESTROY(_lastPath);
[super dealloc];
}
- (id)copyWithZone: (NSZone *)zone
{
Win32CairoGState *object = [super copyWithZone: zone];
object->_lastPath = [_lastPath copy];
return object;
}
- (HDC) getHDC
{
if (_surface)