Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 315 vs 337 for /trunk/Source Code/Libs/src/ReCast/Detour/Source/DetourAlloc.cpp

Diff revisions: vs.
  @@ -21,12 +21,12 @@
21 21
22 22 static void *dtAllocDefault(int size, dtAllocHint)
23 23 {
24 - return malloc(size);
24 + return malloc(size);
25 25 }
26 26
27 27 static void dtFreeDefault(void *ptr)
28 28 {
29 - free(ptr);
29 + free(ptr);
30 30 }
31 31
32 32 static dtAllocFunc* sAllocFunc = dtAllocDefault;
  @@ -34,17 +34,17 @@
34 34
35 35 void dtAllocSetCustom(dtAllocFunc *allocFunc, dtFreeFunc *freeFunc)
36 36 {
37 - sAllocFunc = allocFunc ? allocFunc : dtAllocDefault;
38 - sFreeFunc = freeFunc ? freeFunc : dtFreeDefault;
37 + sAllocFunc = allocFunc ? allocFunc : dtAllocDefault;
38 + sFreeFunc = freeFunc ? freeFunc : dtFreeDefault;
39 39 }
40 40
41 41 void* dtAlloc(int size, dtAllocHint hint)
42 42 {
43 - return sAllocFunc(size, hint);
43 + return sAllocFunc(size, hint);
44 44 }
45 45
46 46 void dtFree(void* ptr)
47 47 {
48 - if (ptr)
49 - sFreeFunc(ptr);
48 + if (ptr)
49 + sFreeFunc(ptr);
50 50 }