Fixed error handling.

This commit is contained in:
claudiol 2017-12-29 08:56:40 -05:00
parent 7528134cda
commit 064e81a6a9

View file

@ -2096,6 +2096,12 @@ void LIB_HANDLER()
case DOMATERR:
{
// SAME PROCEDURE AS ENDERR
rplRemoveExceptionHandler();
rplPopRet();
rplUnprotectData();
rplRemoveExceptionHandler();
// JUST CLEANUP AND EXIT
DSTop=rplUnprotectData();
rplCleanupLAMs(0);