Fix crash when removing all scripts
This commit is contained in:
parent
1342fd3ecf
commit
4e98093d6c
|
@ -2354,6 +2354,11 @@ int _scr_remove_all()
|
||||||
} else {
|
} else {
|
||||||
next = scriptListExtent->next;
|
next = scriptListExtent->next;
|
||||||
scriptRemove(script->sid);
|
scriptRemove(script->sid);
|
||||||
|
|
||||||
|
// CE: Current extent is freed in |scriptRemove|. Break
|
||||||
|
// to prevent next iteration which needs to dereference
|
||||||
|
// extent to obtain it's length.
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue