diff options
-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(); } |