Bug 1660886 - Release PWebGL when ClientWebGLContext is done with it. r=handyman,jld

Differential Revision: https://phabricator.services.mozilla.com/D88067
This commit is contained in:
Jeff Gilbert 2020-08-27 00:50:32 +00:00
Родитель 5b04a444c1
Коммит d54712b964
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -32,7 +32,13 @@ namespace mozilla {
webgl::NotLostData::NotLostData(ClientWebGLContext& _context)
: context(_context) {}
webgl::NotLostData::~NotLostData() = default;
webgl::NotLostData::~NotLostData() {
if (outOfProcess) {
const auto& pwebgl = outOfProcess->mWebGLChild;
Unused << WebGLChild::Send__delete__(pwebgl.get());
}
}
// -