bug 289695 use the right free function

patch by Itay Perl <itay.perl@gmail.com> r=bsmedberg a=bsmedberg
This commit is contained in:
cbiesinger%web.de 2005-06-19 18:09:51 +00:00
Родитель 87cc0aac8c
Коммит 05459f44fc
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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;