Bug 1729082 - Stop leaking the portal Pipewire file descriptor, r=emilio

It is used to create the `pw_core` object that is disconnected above.

Differential Revision: https://phabricator.services.mozilla.com/D124508
This commit is contained in:
Robert Mader 2021-09-04 10:43:59 +00:00
Родитель e6430fdfe7
Коммит 441e2df293
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -238,6 +238,10 @@ BaseCapturerPipeWire::~BaseCapturerPipeWire() {
g_object_unref(proxy_);
proxy_ = nullptr;
}
if (pw_fd_ != -1) {
close(pw_fd_);
}
}
void BaseCapturerPipeWire::InitPortal() {