зеркало из https://github.com/mozilla/pjs.git
bug#32378. fix memleak. r:bruce@cybersight.com.
This commit is contained in:
Родитель
cec90f8a83
Коммит
138124e7b9
|
@ -545,6 +545,7 @@ il_get_container(IL_GroupContext *img_cx,
|
|||
IL_ReleaseColorSpace(ic->src_header->color_space);
|
||||
IL_ReleaseColorSpace(ic->image->header.color_space);
|
||||
PR_FREEIF(ic->src_header);
|
||||
nsCRT::free(ic->url_address);
|
||||
PR_FREEIF(ic);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -556,6 +557,7 @@ il_get_container(IL_GroupContext *img_cx,
|
|||
IL_ReleaseColorSpace(ic->src_header->color_space);
|
||||
IL_ReleaseColorSpace(ic->image->header.color_space);
|
||||
PR_FREEIF(ic->src_header);
|
||||
nsCRT::free(ic->url_address);
|
||||
PR_FREEIF(ic);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче