mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1162293 - Part 2: Fix string leak in logging code. r=froydnj
If logging is enabled the result from |ToNewCString| will be leaked. Switched to |NS_LossyConvertUTF16toASCII| instead.
This commit is contained in:
parent
c451c2932b
commit
0874d24742
@ -240,7 +240,7 @@ NativeKeyBindings::Execute(const WidgetKeyboardEvent& aEvent,
|
||||
|
||||
PR_LOG(gNativeKeyBindingsLog, PR_LOG_ALWAYS,
|
||||
("%p NativeKeyBindings::KeyPress, selector=%s",
|
||||
this, ToNewCString(nsSelectorString)));
|
||||
this, NS_LossyConvertUTF16toASCII(nsSelectorString).get()));
|
||||
}
|
||||
|
||||
// Try to find a simple mapping in the hashtable
|
||||
|
Loading…
Reference in New Issue
Block a user