Index: ui/base/x/x11_util.cc |
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc |
index 302ffd6d4dca907536d58ae8b157e88c918dd803..288344828ee8620707daa7b597a22f93af4627ab 100644 |
--- a/ui/base/x/x11_util.cc |
+++ b/ui/base/x/x11_util.cc |
@@ -1003,6 +1003,10 @@ void InitXKeyEventForTesting(EventType type, |
event->xkey = key_event; |
} |
+XScopedString::~XScopedString() { |
+ XFree(string_); |
+} |
+ |
// ---------------------------------------------------------------------------- |
// These functions are declared in x11_util_internal.h because they require |
// XLib.h to be included, and it conflicts with many other headers. |