зеркало из https://github.com/mozilla/pjs.git
bug 289695: nsFormHistory.cpp, nsAutoVoidArray should call PR_Free on matchingValues, and not delete it.
r=mconnor, a=asa
This commit is contained in:
Родитель
8bf5052df6
Коммит
d303bacc4d
|
@ -61,6 +61,8 @@
|
|||
#include "nsVoidArray.h"
|
||||
#include "nsCOMArray.h"
|
||||
|
||||
#include "prmem.h" //for Bug 289695
|
||||
|
||||
#define PREF_FORMFILL_BRANCH "browser.formfill."
|
||||
#define PREF_FORMFILL_ENABLE "enable"
|
||||
|
||||
|
@ -787,7 +789,7 @@ nsFormHistory::AutoCompleteSearch(const nsAString &aInputName,
|
|||
result->AddRow(matchingRows[items[i]]);
|
||||
|
||||
// Free up these strings we owned.
|
||||
delete (PRUnichar *) matchingValues[i];
|
||||
PR_Free((PRUnichar *) matchingValues[i]);
|
||||
}
|
||||
|
||||
delete[] items;
|
||||
|
|
Загрузка…
Ссылка в новой задаче