summaryrefslogtreecommitdiff
path: root/mozilla-1739924.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2021-11-19 09:31:58 +0100
committerMartin Stransky <stransky@redhat.com>2021-11-19 09:31:58 +0100
commit3bb9b0700925dc0d71b1b7695ebc8ad8c1230343 (patch)
tree2afef1fbda26c18d16876a49dae087f6570b8c30 /mozilla-1739924.patch
parentDisable aarch64 due to build failures bugzilla.redhat.com/show_bug.cgi?id=201... (diff)
downloadlibrewolf-fedora-ff-3bb9b0700925dc0d71b1b7695ebc8ad8c1230343.tar.gz
librewolf-fedora-ff-3bb9b0700925dc0d71b1b7695ebc8ad8c1230343.tar.bz2
librewolf-fedora-ff-3bb9b0700925dc0d71b1b7695ebc8ad8c1230343.zip
Added fix for mozbz#1739924 / rhbz#2020981
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