mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
fix: Memory leak from CreateProxyWindowHandler (#32773)
* fix: Memory leak from CreateProxyWindowHandler Signed-off-by: ede1998 <online@erik-hennig.me> * fix: memory leak in WindowProxy Signed-off-by: ede1998 <online@erik-hennig.me> * fix: Memory leak in WindowProxyHandler through static Signed-off-by: ede1998 <online@erik-hennig.me> --------- Signed-off-by: ede1998 <online@erik-hennig.me>
This commit is contained in:
parent
501950c2e3
commit
5963695664
4 changed files with 101 additions and 40 deletions
|
@ -104,7 +104,7 @@ use crate::dom::bindings::root::{Dom, DomRoot, MutNullableDom};
|
|||
use crate::dom::bindings::str::{DOMString, USVString};
|
||||
use crate::dom::bindings::structuredclone;
|
||||
use crate::dom::bindings::trace::{JSTraceable, RootedTraceableBox};
|
||||
use crate::dom::bindings::utils::{GlobalStaticData, WindowProxyHandler};
|
||||
use crate::dom::bindings::utils::GlobalStaticData;
|
||||
use crate::dom::bindings::weakref::DOMTracker;
|
||||
use crate::dom::bluetooth::BluetoothExtraPermissionData;
|
||||
use crate::dom::crypto::Crypto;
|
||||
|
@ -133,7 +133,7 @@ use crate::dom::selection::Selection;
|
|||
use crate::dom::storage::Storage;
|
||||
use crate::dom::testrunner::TestRunner;
|
||||
use crate::dom::webglrenderingcontext::WebGLCommandSender;
|
||||
use crate::dom::windowproxy::WindowProxy;
|
||||
use crate::dom::windowproxy::{WindowProxy, WindowProxyHandler};
|
||||
use crate::dom::worklet::Worklet;
|
||||
use crate::dom::workletglobalscope::WorkletGlobalScopeType;
|
||||
use crate::layout_image::fetch_image_for_layout;
|
||||
|
@ -2321,8 +2321,8 @@ impl Window {
|
|||
self.Document().url()
|
||||
}
|
||||
|
||||
pub fn windowproxy_handler(&self) -> WindowProxyHandler {
|
||||
WindowProxyHandler(self.dom_static.windowproxy_handler.0)
|
||||
pub fn windowproxy_handler(&self) -> &'static WindowProxyHandler {
|
||||
self.dom_static.windowproxy_handler
|
||||
}
|
||||
|
||||
pub fn get_pending_reflow_count(&self) -> u32 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue