diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-09 03:06:35 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-10 07:59:45 +0100 |
commit | b7e30878600b4d03e4102dd743279736c52a70c2 (patch) | |
tree | bd62da52fc97fe5d06d77a55a55b7390643dec88 /vcl/inc | |
parent | d846fc0c3bcb03ec422ce7f8227470bb3c5af14c (diff) |
prevent insane memory allocation
We release the memory in the next call again.
Change-Id: I9cd974f2c1b2381d0a895bea52a8654143862971
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/impbmp.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/inc/impbmp.hxx b/vcl/inc/impbmp.hxx index f6663c5c45d5..bbe80649b23b 100644 --- a/vcl/inc/impbmp.hxx +++ b/vcl/inc/impbmp.hxx @@ -38,6 +38,13 @@ private: public: ImpBitmap(); + /** + * takes ownership + * same as Sequence: + * pBmp = new ImpBitmap; + * pBmp->ImplSetSalBitmap(pBitmap); + */ + ImpBitmap(SalBitmap* pBitmap); ~ImpBitmap(); void ImplSetSalBitmap( SalBitmap* pSalBitmap ); |