Skip to content

Commit

Permalink
gbm: emit deestroy before destroying bo
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 8, 2024
1 parent 0ce4b19 commit 157f067
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/allocator/GBM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 157f067

Please sign in to comment.