Skip to content

egl/dri2: fix crash in release_buffer

Xaver Hugl requested to merge Zamundaaa/mesa:fix-gbm-crash into main

When a EglSurface gets destroyed the buffers are destroyed and freed. If buffers are afterwards released to the gbm surface this will cause release_surface to access freed memory; to prevent that set the buffers to NULL after calling gbm_bo_destroy.

KWin bug: https://bugs.kde.org/show_bug.cgi?id=436500

Merge request reports

Loading