diff options
Diffstat (limited to 'vcl/inc/unx/salobj.h')
-rw-r--r-- | vcl/inc/unx/salobj.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/inc/unx/salobj.h b/vcl/inc/unx/salobj.h index ffc738aa6987..ba35beebf780 100644 --- a/vcl/inc/unx/salobj.h +++ b/vcl/inc/unx/salobj.h @@ -23,6 +23,7 @@ #include <salobj.hxx> #include <vcl/sysdata.hxx> #include <vclpluginapi.h> +#include <memory> class SalClipRegion { @@ -36,7 +37,7 @@ public: void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ); XRectangle *EndSetClipRegion() { - return ClipRectangleList; } + return ClipRectangleList.get(); } void ResetClipRegion() { numClipRectangles = 0; } int GetRectangleCount() { @@ -44,7 +45,8 @@ public: private: - XRectangle* ClipRectangleList; + std::unique_ptr<XRectangle[]> + ClipRectangleList; int numClipRectangles; int maxClipRectangles; }; |