I got lots of error messages with the error fixed in D6659 about failed locking of front buffer. The reason was that it returned early in DrmOutput::present() because of the missing logind active state, and KWin didn't delete the buffer when doing this, therefore not releasing the surface lock of the GBM buffer to the EGL surface. This patch makes sure that on any error in present we cleanup the proposed DrmBuffer.
- Group Reviewers
- R108:d4423186b98f: [platforms/drm] Delete buffer on all errors in present