Index: Source/web/ColorChooserPopupUIController.cpp |
diff --git a/Source/web/ColorChooserPopupUIController.cpp b/Source/web/ColorChooserPopupUIController.cpp |
index c2bb507f2ccfc29d360dee903b3e70947683dde3..8f4da5db27266085442796a562a054e55a9a4340 100644 |
--- a/Source/web/ColorChooserPopupUIController.cpp |
+++ b/Source/web/ColorChooserPopupUIController.cpp |
@@ -55,6 +55,14 @@ ColorChooserPopupUIController::ColorChooserPopupUIController(LocalFrame* frame, |
ColorChooserPopupUIController::~ColorChooserPopupUIController() |
{ |
+ closePopup(); |
+ // ~ColorChooserUIController ends the ColorChooser. |
+} |
+ |
+void ColorChooserPopupUIController::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_client); |
+ ColorChooserUIController::trace(visitor); |
} |
void ColorChooserPopupUIController::openUI() |
@@ -69,8 +77,8 @@ void ColorChooserPopupUIController::endChooser() |
{ |
if (m_chooser) |
m_chooser->endChooser(); |
- if (m_popup) |
- closePopup(); |
+ |
+ closePopup(); |
} |
AXObject* ColorChooserPopupUIController::rootAXObject() |