зеркало из https://github.com/mozilla/gecko-dev.git
Add an extra sanity check on the children argument.
This commit is contained in:
Родитель
70bf8c2dd9
Коммит
a0a877255e
|
@ -763,7 +763,7 @@ XfeDestroyMenuWidgetTree(WidgetList children,
|
|||
{
|
||||
int i;
|
||||
|
||||
if (num_children <= 0)
|
||||
if ((num_children <= 0) || (children == NULL))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче