diff --git a/wgpu-core/src/device/mod.rs b/wgpu-core/src/device/mod.rs index a582f6733f..716fce54e1 100644 --- a/wgpu-core/src/device/mod.rs +++ b/wgpu-core/src/device/mod.rs @@ -4575,6 +4575,7 @@ impl Global { if let Some(cmdbuf) = cmdbuf { let device = &mut device_guard[cmdbuf.device_id.value]; device.untrack::(hub, &cmdbuf.trackers, &mut token); + device.destroy_command_buffer(cmdbuf); } }