1583
|
1 #include <stdlib.h>
|
|
2
|
0
|
3 #include "BSPModel.h"
|
|
4
|
|
5
|
|
6
|
|
7 //----- (00478389) --------------------------------------------------------
|
|
8 void BSPModel::Release()
|
|
9 {
|
|
10 BSPModel *v1; // esi@1
|
|
11 void *v2; // ST00_4@1
|
|
12 void *v3; // ST00_4@1
|
|
13 void *v4; // ST00_4@1
|
|
14
|
|
15 v1 = this;
|
1583
|
16 free(*(void **)&this->pVertices.pVertices);
|
72
|
17 v2 = v1->pFaces;
|
|
18 v1->pVertices.pVertices = 0;
|
1583
|
19 free(v2);
|
72
|
20 v3 = v1->pFacesOrdering;
|
|
21 v1->pFaces = 0;
|
1583
|
22 free(v3);
|
72
|
23 v4 = v1->pNodes;
|
|
24 v1->pFacesOrdering = 0;
|
1583
|
25 free(v4);
|
72
|
26 v1->pNodes = 0;
|
|
27 v1->uNumNodes = 0;
|
|
28 v1->uNumFaces = 0;
|
|
29 v1->pVertices.uNumVertices = 0;
|
|
30 v1->uNumConvexFaces = 0;
|
0
|
31 }
|