mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
screenshare: destroy bo on pwStreamRemoveBuffer
This commit is contained in:
parent
8d3538e113
commit
716da5e0f3
1 changed files with 5 additions and 2 deletions
|
@ -932,6 +932,9 @@ static void pwStreamRemoveBuffer(void* data, pw_buffer* buffer) {
|
||||||
if (PSTREAM->currentPWBuffer == PBUFFER)
|
if (PSTREAM->currentPWBuffer == PBUFFER)
|
||||||
PSTREAM->currentPWBuffer = nullptr;
|
PSTREAM->currentPWBuffer = nullptr;
|
||||||
|
|
||||||
|
if (PBUFFER->isDMABUF)
|
||||||
|
gbm_bo_destroy(PBUFFER->bo);
|
||||||
|
|
||||||
wl_buffer_destroy(PBUFFER->wlBuffer);
|
wl_buffer_destroy(PBUFFER->wlBuffer);
|
||||||
for (int plane = 0; plane < PBUFFER->planeCount; plane++) {
|
for (int plane = 0; plane < PBUFFER->planeCount; plane++) {
|
||||||
close(PBUFFER->fd[plane]);
|
close(PBUFFER->fd[plane]);
|
||||||
|
|
Loading…
Reference in a new issue