Index: base/message_pump_glib_x.cc |
diff --git a/base/message_pump_glib_x.cc b/base/message_pump_glib_x.cc |
index c694114d2933b97253723f4921ff5919a2f56fd1..d45ce7e7c878efd50b9ed11499c2fb50014cf1e0 100644 |
--- a/base/message_pump_glib_x.cc |
+++ b/base/message_pump_glib_x.cc |
@@ -43,6 +43,11 @@ MessagePumpGlibX::MessagePumpGlibX() : base::MessagePumpForUI(), |
} |
MessagePumpGlibX::~MessagePumpGlibX() { |
+ gdk_window_remove_filter(NULL, &GdkEventFilter, this); |
+ |
+ // It is not necessary to reset the GDK event handler using |
+ // gdk_event_handler_set since it's done in the destructor for |
+ // MessagePumpForUI. |
} |
bool MessagePumpGlibX::ShouldCaptureXEvent(XEvent* xev) { |