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/source/gdi | |
parent | d846fc0c3bcb03ec422ce7f8227470bb3c5af14c (diff) |
prevent insane memory allocation
We release the memory in the next call again.
Change-Id: I9cd974f2c1b2381d0a895bea52a8654143862971
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/impbmp.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/gdi/impbmp.cxx b/vcl/source/gdi/impbmp.cxx index 1ee75d42b442..633cff2a5c64 100644 --- a/vcl/source/gdi/impbmp.cxx +++ b/vcl/source/gdi/impbmp.cxx @@ -31,6 +31,13 @@ ImpBitmap::ImpBitmap() : { } +ImpBitmap::ImpBitmap(SalBitmap* pBitmap) : + mnRefCount ( 1 ), + mnChecksum ( 0 ), + mpSalBitmap ( pBitmap ) +{ +} + ImpBitmap::~ImpBitmap() { delete mpSalBitmap; |