diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-10-30 16:05:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-03 09:58:04 +0000 |
commit | a93c08e8eeb8386d02a015c63d161220d059a6bf (patch) | |
tree | 267071d081b4c1688fadd750383a33d8fdfbdf6a /vcl | |
parent | f4b8ebbd7838921cce837acb353f81df1a6d2996 (diff) |
svx: add result of "badstatics" plugin to fix abuse of VCL Bitmaps
VCL Image/Bitmap/BitmapEx instances must not have static life-time
because then they will be destructed after DeInitVCL() and that
likely segfaults.
(cherry picked from commit bf18f1b3535dd17f9bf584cab15ee6a7fd431257)
Omitting the plugin itself, the fixes should be enough for release
branch.
Change-Id: I3ff8d32de729c971b190028094cb4efe206395e2
Reviewed-on: https://gerrit.libreoffice.org/19742
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/workben/vcldemo.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index 2db38bdf3605..fd8c01f8ab57 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -649,7 +649,7 @@ public: // be done with a shader / gradient static void SimulateBorderStretch(OutputDevice &rDev, const Rectangle& r) { - static BitmapEx aPageShadowMask("sw/res/page-shadow-mask.png"); + BitmapEx aPageShadowMask("sw/res/page-shadow-mask.png"); BitmapEx aRight(aPageShadowMask); sal_Int32 nSlice = (aPageShadowMask.GetSizePixel().Width() - 3) / 4; |