Implement dealloc/copyWithZone on Win32CairoGState instance

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@39618 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2016-04-04 14:50:09 +00:00
parent 05640cbf48
commit 6e1de7df76

View file

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