mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 04:56:00 +01:00
gbm: emit deestroy before destroying bo
This commit is contained in:
parent
0ce4b193cf
commit
157f067cf8
1 changed files with 1 additions and 0 deletions
|
@ -154,6 +154,7 @@ Aquamarine::CGBMBuffer::CGBMBuffer(const SAllocatorBufferParams& params, Hypruti
|
||||||
}
|
}
|
||||||
|
|
||||||
Aquamarine::CGBMBuffer::~CGBMBuffer() {
|
Aquamarine::CGBMBuffer::~CGBMBuffer() {
|
||||||
|
events.destroy.emit();
|
||||||
if (bo)
|
if (bo)
|
||||||
gbm_bo_destroy(bo);
|
gbm_bo_destroy(bo);
|
||||||
for (size_t i = 0; i < (size_t)attrs.planes; i++)
|
for (size_t i = 0; i < (size_t)attrs.planes; i++)
|
||||||
|
|
Loading…
Reference in a new issue