mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1247160 - Clipboard causes memory leak by internet shortcut. r=jimm
UTF8ToNewUnicode alloces new memory, so we don't need new alloc to convert to UTF-16 MozReview-Commit-ID: K7saM1xxNQ1
This commit is contained in:
parent
5fb7c67087
commit
05b1dd7d97
@ -836,7 +836,7 @@ nsClipboard :: FindURLFromLocalFile ( IDataObject* inDataObject, UINT inIndex, v
|
||||
ResolveShortcut( file, url );
|
||||
if ( !url.IsEmpty() ) {
|
||||
// convert it to unicode and pass it out
|
||||
nsDependentString urlString(UTF8ToNewUnicode(url));
|
||||
NS_ConvertUTF8toUTF16 urlString(url);
|
||||
// the internal mozilla URL format, text/x-moz-url, contains
|
||||
// URL\ntitle. We can guess the title from the file's name.
|
||||
nsAutoString title;
|
||||
|
Loading…
Reference in New Issue
Block a user