From 6e1de7df76e370a8cae7d5cae862e9fe8ed14eca Mon Sep 17 00:00:00 2001 From: Marcian Lytwyn Date: Mon, 4 Apr 2016 14:50:09 +0000 Subject: [PATCH] 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 --- Source/cairo/Win32CairoGState.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Source/cairo/Win32CairoGState.m b/Source/cairo/Win32CairoGState.m index 1333b41..10eb27a 100644 --- a/Source/cairo/Win32CairoGState.m +++ b/Source/cairo/Win32CairoGState.m @@ -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 { if (_surface)