Bug 1676586 [Linux] Merge upstream PipeWire/WebRTC DBus fix https://webrtc-review.googlesource.com/c/src/+/156980 r=dminor

Avoid g_clear_object in pipewire, fixes the build warnings when building with a newer version of
glib.

Depends on D96677

Differential Revision: https://phabricator.services.mozilla.com/D96678
This commit is contained in:
stransky 2020-11-12 12:20:39 +00:00
parent 10b727e8cf
commit 61fd86179c

View file

@ -224,11 +224,13 @@ BaseCapturerPipeWire::~BaseCapturerPipeWire() {
if (cancellable_) {
g_cancellable_cancel(cancellable_);
g_clear_object(&cancellable_);
g_object_unref(cancellable_);
cancellable_ = nullptr;
}
if (proxy_) {
g_clear_object(&proxy_);
g_object_unref(proxy_);
proxy_ = nullptr;
}
}