wayland/screencopy: fix bo double free on alloc fail in createDmabuf

gbm_bo_free is already called by the WlDmaBuffer destructor
This commit is contained in:
outfoxxed committed 2026-08-15 20:53:19 -07:00
1 parent 63eb2ba6ef
commit 8f1316d0c2
2 files changed
+1 -1

No files matched your search

+1
View File
@@ -16,3 +16,4 @@
- Fixed `Toplevel.unsetRectangle` crashing when calle.
- Fixed intermittent `FileView` crashes when updating watched files.
- Fixed `ColorQuantizer` deletion crashing if an operation was live.
- Fixed crashes when failing to create a `ScreencopyView`.
-1
View File
@@ -799,7 +799,6 @@ WlBuffer* LinuxDmabufManager::createDmabuf(
if (plane.fd < 0) {
qCritical(logDmabuf) << "Failed to get gbm_bo fd for plane" << i << qt_error_string(plane.fd);
params.destroy();
gbm_bo_destroy(bo);
return nullptr;
}