зеркало из https://github.com/mozilla/gecko-dev.git
bug#28289. fix leak. pnunn r:danm, ok:jevering
This commit is contained in:
Родитель
70f68218de
Коммит
db8f010d7a
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче