gbm: emit deestroy before destroying bo

This commit is contained in:
Vaxry 2024-07-08 20:21:20 +02:00
parent 0ce4b193cf
commit 157f067cf8

View file

@ -154,6 +154,7 @@ Aquamarine::CGBMBuffer::CGBMBuffer(const SAllocatorBufferParams& params, Hypruti
}
Aquamarine::CGBMBuffer::~CGBMBuffer() {
events.destroy.emit();
if (bo)
gbm_bo_destroy(bo);
for (size_t i = 0; i < (size_t)attrs.planes; i++)