[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser] 12/76: Bug 1758070 - Null out mContext during shutdown. r=emilio, a=tritter



This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch tor-browser-91.8.0esr-11.0-1
in repository tor-browser.

commit 6aad610559f0cf03fffd04e4df6c55129e202c0b
Author: Nicolas Silva <nsilva@xxxxxxxxxxx>
AuthorDate: Fri Mar 4 14:05:13 2022 +0000

    Bug 1758070 - Null out mContext during shutdown. r=emilio, a=tritter
    
    Differential Revision: https://phabricator.services.mozilla.com/D140336
---
 dom/webgpu/ipc/WebGPUParent.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dom/webgpu/ipc/WebGPUParent.cpp b/dom/webgpu/ipc/WebGPUParent.cpp
index 05889fe4ac786..95de5edbf8316 100644
--- a/dom/webgpu/ipc/WebGPUParent.cpp
+++ b/dom/webgpu/ipc/WebGPUParent.cpp
@@ -736,6 +736,7 @@ ipc::IPCResult WebGPUParent::RecvShutdown() {
   mCanvasMap.clear();
   ffi::wgpu_server_poll_all_devices(mContext, true);
   ffi::wgpu_server_delete(const_cast<ffi::WGPUGlobal*>(mContext));
+  mContext = nullptr;
   return IPC_OK();
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits