diff options
| author | atticus <[email protected]> | 2021-08-20 12:47:51 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-20 11:47:51 +0200 |
| commit | 6d20430ccc81cf2cb5caa39a097dee5875d810b6 (patch) | |
| tree | aa377516269597e62b54a95bb896066b8ed3072b /src | |
| parent | a5beb940f8f08d91b33634ca7dc056f07f60f20c (diff) | |
| download | raylib-6d20430ccc81cf2cb5caa39a097dee5875d810b6.tar.gz raylib-6d20430ccc81cf2cb5caa39a097dee5875d810b6.zip | |
add NULL check (#1925)
Diffstat (limited to 'src')
| -rw-r--r-- | src/extras/rmem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/extras/rmem.h b/src/extras/rmem.h index dbf417fe..7f50adf8 100644 --- a/src/extras/rmem.h +++ b/src/extras/rmem.h @@ -276,6 +276,7 @@ static void __InsertMemNode(MemPool *const mempool, AllocList *const list, MemNo mempool->arena.offs += iter->size; __RemoveMemNode(list, iter); iter = list->head; + if (iter == NULL) return; } const uintptr_t inode = ( uintptr_t )node; const uintptr_t iiter = ( uintptr_t )iter; |
