After some discussions on #wayland, it seems that as soon as you hold a reference to a DMA-BUF (via EGLImage for instance), the underlying memory won't get free'd. The client is allowed to re-use the DMA-BUF and upload something else to it though.
This reverts commit d27eeaa14c.
d27eeaa14c
This reverts commit 5e4af4862e, reversing changes made to 9a1f0e2d5f.
5e4af4862e
9a1f0e2d5f