Title: [277518] trunk/Source/WebKit
Revision
277518
Author
[email protected]
Date
2021-05-14 16:34:45 -0700 (Fri, 14 May 2021)

Log Message

Web Inspector: `_WKInspector` leaks `WebInspectorUIProxy`
https://bugs.webkit.org/show_bug.cgi?id=225815

Reviewed by Tim Horton.

Add a missing call in `_WKInspector`'s destructor to destruct the `WebInspectorUIProxy` in API object storage.

* UIProcess/API/Cocoa/_WKInspector.mm:
(-[_WKInspector dealloc]):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (277517 => 277518)


--- trunk/Source/WebKit/ChangeLog	2021-05-14 23:30:03 UTC (rev 277517)
+++ trunk/Source/WebKit/ChangeLog	2021-05-14 23:34:45 UTC (rev 277518)
@@ -1,3 +1,15 @@
+2021-05-14  Patrick Angle  <[email protected]>
+
+        Web Inspector: `_WKInspector` leaks `WebInspectorUIProxy`
+        https://bugs.webkit.org/show_bug.cgi?id=225815
+
+        Reviewed by Tim Horton.
+
+        Add a missing call in `_WKInspector`'s destructor to destruct the `WebInspectorUIProxy` in API object storage.
+
+        * UIProcess/API/Cocoa/_WKInspector.mm:
+        (-[_WKInspector dealloc]):
+
 2021-05-14  Chris Dumez  <[email protected]>
 
         Drop "get" prefix from WTF::FileSystem's getFileModificationTime() / getFileCreationTime()

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/_WKInspector.mm (277517 => 277518)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/_WKInspector.mm	2021-05-14 23:30:03 UTC (rev 277517)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/_WKInspector.mm	2021-05-14 23:34:45 UTC (rev 277518)
@@ -213,6 +213,8 @@
 {
     if (WebCoreObjCScheduleDeallocateOnMainRunLoop(_WKInspector.class, self))
         return;
+    
+    _inspector->~WebInspectorUIProxy();
 
     [super dealloc];
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to