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