Mayaqua: add new FreeSafe() function which calls Free() and set the pointer's value to NULL

This commit is contained in:
Davide Beatrici committed 2018-12-20 02:52:22 +01:00
1 parent ada06e218e
commit bd01cbff9a
3 files changed
+12 -4

No files matched your search

+7
View File
@@ -3777,6 +3777,13 @@ void Free(void *addr)
InternalFree(tag);
}
// Free and set pointer's value to NULL
void FreeSafe(void **addr)
{
Free(*addr);
*addr = NULL;
}
// Check the memtag
void CheckMemTag(MEMTAG *tag)
{