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
Родитель 1237aba347
Коммит ca729fdef1
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -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);
}
}