diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-09-22 17:13:06 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-09-23 08:45:11 +0200 |
commit | 1f5141522ffa79f2a94d0f11fa7e6008755ae6d6 (patch) | |
tree | 841f3ac642bc8cb36c4eeb217707c608a22e8700 /vcl | |
parent | 6a3a17c8dcd860506781b28b14c3df7036eaaaba (diff) |
assert that SkiaSalBitmap mImage is not deleted if it's the only data
Change-Id: Idec2e0f3e852c37b37e220ac5059ef0b6accc77a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103205
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/skia/salbmp.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/skia/salbmp.cxx b/vcl/skia/salbmp.cxx index c77b80e39bc1..d933b33e6ac2 100644 --- a/vcl/skia/salbmp.cxx +++ b/vcl/skia/salbmp.cxx @@ -1059,6 +1059,8 @@ void SkiaSalBitmap::EnsureBitmapUniqueData() void SkiaSalBitmap::ResetCachedData() { SkiaZone zone; + // This should never be called to drop mImage if that's the only data we have. + assert(mBuffer || !mImage); mImage.reset(); mAlphaImage.reset(); } |