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)