bug#28289. fix leak. pnunn r:danm, ok:jevering

This commit is contained in:
pnunn%netscape.com 2000-02-18 23:10:19 +00:00
Родитель 70f68218de
Коммит db8f010d7a
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -1639,6 +1639,8 @@ IL_StreamCreated(il_container *ic,
if (ic->state == IC_ABORT_PENDING)
return PR_FALSE;
if(ic->type != NULL)
nsCRT::free(ic->type); //can be !NULL in animated gifs.
ic->type = nsCRT::strdup(type); //mime string
ic->content_length = url->GetContentLength();
char* addr = url->GetAddress();