Bug 1370121 - Catch exceptions when destroying GeckoSurfaceTexture r=jchen

MozReview-Commit-ID: KDoj9s0ebhY
This commit is contained in:
James Willcox 2017-06-05 14:47:11 -05:00
Родитель 2d0e498645
Коммит 35f072dc23
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -112,7 +112,12 @@ public final class GeckoSurfaceTexture extends SurfaceTexture {
setListener(null);
if (Versions.feature16Plus) {
try {
detachFromGLContext();
} catch (Exception e) {
// This can throw if the EGL context is not current
// but we can't do anything about that now.
}
}
release();