зеркало из https://github.com/mozilla/gecko-dev.git
bug 289695 use the right free function
patch by Itay Perl <itay.perl@gmail.com> r=bsmedberg a=bsmedberg
This commit is contained in:
Родитель
87cc0aac8c
Коммит
05459f44fc
|
@ -61,8 +61,6 @@
|
|||
#include "nsVoidArray.h"
|
||||
#include "nsCOMArray.h"
|
||||
|
||||
#include "prmem.h" //for Bug 289695
|
||||
|
||||
#define PREF_FORMFILL_BRANCH "browser.formfill."
|
||||
#define PREF_FORMFILL_ENABLE "enable"
|
||||
|
||||
|
@ -789,7 +787,7 @@ nsFormHistory::AutoCompleteSearch(const nsAString &aInputName,
|
|||
result->AddRow(matchingRows[items[i]]);
|
||||
|
||||
// Free up these strings we owned.
|
||||
PR_Free((PRUnichar *) matchingValues[i]);
|
||||
NS_Free(matchingValues[i]);
|
||||
}
|
||||
|
||||
delete[] items;
|
||||
|
|
Загрузка…
Ссылка в новой задаче