Mercurial > mm7
comparison BSPModel.cpp @ 1583:75fafd8ced59
Allocator (CMemory) bye-bye
author | Nomad |
---|---|
date | Tue, 10 Sep 2013 21:07:07 +0200 |
parents | 55e3aa43021d |
children | 47bcb700b74b aff7a7b072b7 |
comparison
equal
deleted
inserted
replaced
1577:1b6217e07b26 | 1583:75fafd8ced59 |
---|---|
1 #include <stdlib.h> | |
2 | |
1 #include "BSPModel.h" | 3 #include "BSPModel.h" |
2 #include "Allocator.h" | |
3 | 4 |
4 | 5 |
5 | 6 |
6 //----- (00478389) -------------------------------------------------------- | 7 //----- (00478389) -------------------------------------------------------- |
7 void BSPModel::Release() | 8 void BSPModel::Release() |
10 void *v2; // ST00_4@1 | 11 void *v2; // ST00_4@1 |
11 void *v3; // ST00_4@1 | 12 void *v3; // ST00_4@1 |
12 void *v4; // ST00_4@1 | 13 void *v4; // ST00_4@1 |
13 | 14 |
14 v1 = this; | 15 v1 = this; |
15 pAllocator->FreeChunk(*(void **)&this->pVertices.pVertices); | 16 free(*(void **)&this->pVertices.pVertices); |
16 v2 = v1->pFaces; | 17 v2 = v1->pFaces; |
17 v1->pVertices.pVertices = 0; | 18 v1->pVertices.pVertices = 0; |
18 pAllocator->FreeChunk(v2); | 19 free(v2); |
19 v3 = v1->pFacesOrdering; | 20 v3 = v1->pFacesOrdering; |
20 v1->pFaces = 0; | 21 v1->pFaces = 0; |
21 pAllocator->FreeChunk(v3); | 22 free(v3); |
22 v4 = v1->pNodes; | 23 v4 = v1->pNodes; |
23 v1->pFacesOrdering = 0; | 24 v1->pFacesOrdering = 0; |
24 pAllocator->FreeChunk(v4); | 25 free(v4); |
25 v1->pNodes = 0; | 26 v1->pNodes = 0; |
26 v1->uNumNodes = 0; | 27 v1->uNumNodes = 0; |
27 v1->uNumFaces = 0; | 28 v1->uNumFaces = 0; |
28 v1->pVertices.uNumVertices = 0; | 29 v1->pVertices.uNumVertices = 0; |
29 v1->uNumConvexFaces = 0; | 30 v1->uNumConvexFaces = 0; |