Skip to content

Commit

Permalink
add NIL checks for resources before attempting to release them on cle…
Browse files Browse the repository at this point in the history
…anup (#23)
  • Loading branch information
dmcoles authored Sep 9, 2022
1 parent 32b5409 commit e31e0cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions startup_amigaos.e
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ exitcode:
LOADSTACKRETURN
endpart:

StackSwap(___stackswapstruct)
FreeVec(stackmem)
IF rwmem
IF ___stackswapstruct THEN StackSwap(___stackswapstruct)
ENDIF
IF stackmem THEN FreeVec(stackmem)

IF rwmem

Expand Down

0 comments on commit e31e0cb

Please sign in to comment.