Changeset 73970 in webkit
- Timestamp:
- Dec 13, 2010 3:02:47 PM (13 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r73968 r73970 1 2010-12-13 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Adam Roben. 4 5 WebKit2: Leaks a WebView when opening/closing Web Inspector on Windows 6 https://bugs.webkit.org/show_bug.cgi?id=50975 7 <rdar://problem/8763501> 8 9 Make m_inspectorView be a RefPtr<WebView>, instead of a WebView*. 10 11 * UIProcess/WebInspectorProxy.cpp: 12 (WebKit::WebInspectorProxy::WebInspectorProxy): If we are on Windows, include WebView.h. 13 * UIProcess/WebInspectorProxy.h: Change the type of m_inspectorView to a RefPtr<WebView>. 14 * UIProcess/win/WebInspectorProxyWin.cpp: 15 (WebKit::WebInspectorProxy::platformCreateInspectorPage): Remove the call to leakRef when creating the WebView. 16 1 17 2010-12-13 Anders Carlsson <andersca@apple.com> 2 18 -
trunk/WebKit2/UIProcess/WebInspectorProxy.cpp
r73877 r73970 34 34 #include "WebPageGroup.h" 35 35 36 #if PLATFORM(WIN) 37 #include "WebView.h" 38 #endif 39 36 40 #define DISABLE_NOT_IMPLEMENTED_WARNINGS 1 37 41 #include "NotImplemented.h" … … 56 60 #if PLATFORM(WIN) 57 61 , m_inspectorWindow(0) 58 , m_inspectorView(0)59 62 #endif 60 63 { -
trunk/WebKit2/UIProcess/WebInspectorProxy.h
r73935 r73970 33 33 #include <wtf/Forward.h> 34 34 #include <wtf/PassRefPtr.h> 35 #include <wtf/RefPtr.h> 35 36 36 37 #if PLATFORM(MAC) … … 148 149 #elif PLATFORM(WIN) 149 150 HWND m_inspectorWindow; 150 WebView*m_inspectorView;151 RefPtr<WebView> m_inspectorView; 151 152 #endif 152 153 }; -
trunk/WebKit2/UIProcess/win/WebInspectorProxyWin.cpp
r73965 r73970 153 153 154 154 RECT emptyRect = {0}; 155 m_inspectorView = WebView::createForAssociatedPage(emptyRect, m_page, inspectorPageGroup(), 0) .leakRef();155 m_inspectorView = WebView::createForAssociatedPage(emptyRect, m_page, inspectorPageGroup(), 0); 156 156 157 157 return m_inspectorView->page();
Note: See TracChangeset
for help on using the changeset viewer.