diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-09 03:10:44 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-10 07:59:45 +0100 |
commit | ab63fe781cc8862e970932df2915982ce4770f92 (patch) | |
tree | 0938aff2fcc2d2f418886a71b5d223b26821c9ea /vcl/source | |
parent | prevent insane memory allocation (diff) | |
download | core-ab63fe781cc8862e970932df2915982ce4770f92.tar.gz core-ab63fe781cc8862e970932df2915982ce4770f92.zip |
one more case of these insane memory alloc/release cycles
Change-Id: I57bfbc46e77785a770226868a8750a74f380ddb4
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/bitmap.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/gdi/bitmap.cxx b/vcl/source/gdi/bitmap.cxx index 5f6477a00b82..ccd914d5b924 100644 --- a/vcl/source/gdi/bitmap.cxx +++ b/vcl/source/gdi/bitmap.cxx @@ -60,8 +60,7 @@ Bitmap::Bitmap( const Bitmap& rBitmap ) : Bitmap::Bitmap( SalBitmap* pSalBitmap ) { - mpImpBmp = new ImpBitmap(); - mpImpBmp->ImplSetSalBitmap( pSalBitmap ); + mpImpBmp = new ImpBitmap(pSalBitmap); maPrefMapMode = MapMode( MAP_PIXEL ); maPrefSize = mpImpBmp->ImplGetSize(); } |