Index: ui/accessibility/platform/ax_platform_node_win.cc |
diff --git a/ui/accessibility/platform/ax_platform_node_win.cc b/ui/accessibility/platform/ax_platform_node_win.cc |
index 6cf37f457b37a02639a74518787f5001a1852464..4801322bb70551c4890dc53668fe111cc1670c2d 100644 |
--- a/ui/accessibility/platform/ax_platform_node_win.cc |
+++ b/ui/accessibility/platform/ax_platform_node_win.cc |
@@ -138,23 +138,25 @@ AXPlatformNodeWin::AXPlatformNodeWin() { |
} |
AXPlatformNodeWin::~AXPlatformNodeWin() { |
- CHECK(!delegate_); |
} |
// |
-// AXPlatformNode implementation. |
+// AXPlatformNodeBase implementation. |
// |
+void AXPlatformNodeWin::Dispose() { |
+ Release(); |
+} |
+ |
void AXPlatformNodeWin::Destroy() { |
- AXPlatformNode::Destroy(); |
- // Do not call base class AXPlatformNodeBase::Destroy method because it |
- // would delete this object. Call base's base class AXPlatformNode::Destroy |
- // instead to remove the unique ID from the map like base class does. |
- delegate_ = nullptr; |
RemoveAlertTarget(); |
- Release(); |
+ AXPlatformNodeBase::Destroy(); |
} |
+// |
+// AXPlatformNode implementation. |
+// |
+ |
gfx::NativeViewAccessible AXPlatformNodeWin::GetNativeViewAccessible() { |
return this; |
} |