Fixing memory leak. Multiple object creations clobber static allocations. b=206480, r=kaie,sr=dbaron,a=asa

This commit is contained in:
dougt%meer.net 2003-05-21 21:36:46 +00:00
Родитель be10f09307
Коммит cfe22ef6ed
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -199,6 +199,9 @@ nsKeygenFormProcessor::Init()
nsresult rv;
nsAutoString str;
if (SECKeySizeChoiceList[0].name != NULL)
return NS_OK;
// Get the key strings //
nsCOMPtr<nsINSSComponent> nssComponent;
nssComponent = do_GetService(kNSSComponentCID, &rv);