Fix dma buffer lifetime management


In some special circumstances buffers didn't get removed from the
importedBuffers map - for instance when a client creates a buffer,
doesn't commit it and disconnects right away.

In the worst case there could even be a nullptr access, when the
wl_resource happened to point to the same address again, as a dangling
key in the importedBuffers map.

Pick-to: 6.11 6.11.0 6.10
Change-Id: I13fd53f3efe0163c4de3748c80bcf6d1bf589884
Reviewed-by: Thomas Senyk <thomas.senyk@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commitb391b6201a05e8cdc2353f77d27d116d7fcf9e54
parent184755a09e94961923b352d5a668dafae8d5d4fe
authorBernd Weimer <bernd.weimer@qt.io>
committerBernd Weimer <bernd.weimer@qt.io>
commit timeThu, 26 Feb 2026 10:41:50 +0100