vcl/skia/gdiimpl.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit b7b4565473b09c771d5a949c394013956f1c4db7
Author: Mike Kaganski <[email protected]>
AuthorDate: Mon Aug 17 17:42:43 2020 +0300
Commit: Mike Kaganski <[email protected]>
CommitDate: Tue Aug 18 08:02:30 2020 +0200
Dereference of nullptr
... opening attachment 164348 from tdf#135799
Change-Id: I7d9b38bf34c7120fee39707ed99a0e6e2c2c84e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100878
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <[email protected]>
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx
index c092bb549a22..95fe81ec4e34 100644
--- a/vcl/skia/gdiimpl.cxx
+++ b/vcl/skia/gdiimpl.cxx
@@ -400,6 +400,8 @@ void SkiaSalGraphicsImpl::checkSurface()
void SkiaSalGraphicsImpl::flushDrawing()
{
+ if (!mSurface)
+ return;
checkPendingDrawing();
if (mXorMode)
applyXor();
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits