mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-17 08:27:39 +00:00
vulkan/device_select_wayland: fix a memory leak with DRM device handling
Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18076> (cherry picked from commit 163390d762ba45c285d0ccafcbdd68f760d9b640)
This commit is contained in:
parent
20886cf572
commit
242b498115
@ -13432,7 +13432,7 @@
|
||||
"description": "vulkan/device_select_wayland: fix a memory leak with DRM device handling",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
@ -137,6 +137,8 @@ int device_select_find_wayland_pci_default(struct device_pci_info *devices, uint
|
||||
if (default_idx != -1)
|
||||
break;
|
||||
}
|
||||
|
||||
drmFreeDevice(&info.dev_info);
|
||||
}
|
||||
|
||||
if (info.wl_drm)
|
||||
|
Loading…
x
Reference in New Issue
Block a user