summaryrefslogtreecommitdiff
path: root/mozilla-1739924.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mozilla-1739924.patch')
-rw-r--r--mozilla-1739924.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/mozilla-1739924.patch b/mozilla-1739924.patch
new file mode 100644
index 0000000..3cac2ee
--- /dev/null
+++ b/mozilla-1739924.patch
@@ -0,0 +1,27 @@
+diff --git a/widget/gtk/DMABufSurface.cpp b/widget/gtk/DMABufSurface.cpp
+--- a/widget/gtk/DMABufSurface.cpp
++++ b/widget/gtk/DMABufSurface.cpp
+@@ -204,17 +204,17 @@
+ }
+
+ void DMABufSurface::FenceDelete() {
++ if (mSyncFd > 0) {
++ close(mSyncFd);
++ mSyncFd = -1;
++ }
++
+ if (!mGL) {
+ return;
+ }
+ const auto& gle = gl::GLContextEGL::Cast(mGL);
+ const auto& egl = gle->mEgl;
+
+- if (mSyncFd > 0) {
+- close(mSyncFd);
+- mSyncFd = -1;
+- }
+-
+ if (mSync) {
+ egl->fDestroySync(mSync);
+ mSync = nullptr;
+
bgstack15