blob: 5eb6f4af3e649f8558615f877783b1dd68aad3b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "commonheaders.h"
void __fastcall safe_free(void** p)
{
if (*p) {
free(*p);
*p = nullptr;
}
}
void __fastcall safe_delete(void** p)
{
if (*p) {
delete(*p);
*p = nullptr;
}
}
|