platforms/drm: release gbm buffers before eglDestroySurface
Mesa destroys the underlying buffers when you call eglDestroySurface
, when we then release the buffers to the gbm surface afterwards it tries to access the freed buffers. It seems easy to fix, I'll make a MR for it.
@apol while I can't reproduce the crash for some reason, this should fix it. It's something from the old code that was just there without explanation why it was necessary and thus got removed... Let's add it back in again, at least until it's fixed in Mesa.