Mercurial > mm7
annotate BSPModel.cpp @ 2407:378e5732ba38
Слияние
author | Ritor1 |
---|---|
date | Wed, 09 Jul 2014 18:19:54 +0600 |
parents | bddcaf5d5db2 |
children | f4af3b203f65 |
rev | line source |
---|---|
2253
aff7a7b072b7
adding _CRT_SECURE_NO_WARNINGS to get rid of a few hundrer annoying warnings + adding count parameter to swprintf
Grumpy7
parents:
1583
diff
changeset
|
1 #define _CRT_SECURE_NO_WARNINGS |
1583 | 2 #include <stdlib.h> |
3 | |
0 | 4 #include "BSPModel.h" |
5 | |
6 | |
7 | |
8 //----- (00478389) -------------------------------------------------------- | |
9 void BSPModel::Release() | |
10 { | |
2251 | 11 free(this->pVertices.pVertices); |
12 this->pVertices.pVertices = 0; | |
13 free(this->pFaces); | |
2369
bddcaf5d5db2
removing non-nullptr conditions before frees, chaning 0 and NULL assignmnets to pointers to nullptr assignments
Grumpy7
parents:
2254
diff
changeset
|
14 this->pFaces = nullptr; |
2251 | 15 free(this->pFacesOrdering); |
2369
bddcaf5d5db2
removing non-nullptr conditions before frees, chaning 0 and NULL assignmnets to pointers to nullptr assignments
Grumpy7
parents:
2254
diff
changeset
|
16 this->pFacesOrdering = nullptr; |
2251 | 17 free(this->pNodes); |
2369
bddcaf5d5db2
removing non-nullptr conditions before frees, chaning 0 and NULL assignmnets to pointers to nullptr assignments
Grumpy7
parents:
2254
diff
changeset
|
18 this->pNodes = nullptr; |
2251 | 19 this->uNumNodes = 0; |
20 this->uNumFaces = 0; | |
21 this->pVertices.uNumVertices = 0; | |
22 this->uNumConvexFaces = 0; | |
0 | 23 } |