summaryrefslogtreecommitdiffhomepage
path: root/src/extras
diff options
context:
space:
mode:
authoratticus <[email protected]>2021-08-20 12:47:51 +0300
committerGitHub <[email protected]>2021-08-20 11:47:51 +0200
commit6d20430ccc81cf2cb5caa39a097dee5875d810b6 (patch)
treeaa377516269597e62b54a95bb896066b8ed3072b /src/extras
parenta5beb940f8f08d91b33634ca7dc056f07f60f20c (diff)
downloadraylib-6d20430ccc81cf2cb5caa39a097dee5875d810b6.tar.gz
raylib-6d20430ccc81cf2cb5caa39a097dee5875d810b6.zip
add NULL check (#1925)
Diffstat (limited to 'src/extras')
-rw-r--r--src/extras/rmem.h1
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;