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
parent e6430fdfe7
commit 441e2df293

View File

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