diff options
Diffstat (limited to 'cocoa/PlatCocoa.h')
-rw-r--r-- | cocoa/PlatCocoa.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/PlatCocoa.h b/cocoa/PlatCocoa.h index 5d0789407..f8f1bd698 100644 --- a/cocoa/PlatCocoa.h +++ b/cocoa/PlatCocoa.h @@ -47,12 +47,12 @@ private: CGContextRef gc; /** The text layout instance */ - QuartzTextLayout* textLayout; + std::unique_ptr<QuartzTextLayout> textLayout; int codePage; int verticalDeviceResolution; /** If the surface is a bitmap context, contains a reference to the bitmap data. */ - uint8_t* bitmapData; + std::unique_ptr<uint8_t[]> bitmapData; /** If the surface is a bitmap context, stores the dimensions of the bitmap. */ int bitmapWidth; int bitmapHeight; |