Bug 1750017 [Linux] Don't set shape mask to released drawable, r=lsalzman

Don't clear shape mask with XShapeCombineMask(), it's not needed and target darawable may be already deleted.

Differential Revision: https://phabricator.services.mozilla.com/D136149
This commit is contained in:
stransky 2022-01-17 19:14:13 +00:00
parent 1237aba347
commit ca729fdef1

View File

@ -40,12 +40,6 @@ WindowSurfaceX11Image::WindowSurfaceX11Image(Display* aDisplay, Window aWindow,
WindowSurfaceX11Image::~WindowSurfaceX11Image() {
if (mTransparencyBitmap) {
delete[] mTransparencyBitmap;
Display* xDisplay = mWindowSurface->XDisplay();
Window xDrawable = mWindowSurface->XDrawable();
XShapeCombineMask(xDisplay, xDrawable, ShapeBounding, 0, 0, X11None,
ShapeSet);
}
}