view BSPModel.cpp @ 690:26dfde53decd

ui fixing
author Gloval
date Sat, 16 Mar 2013 01:25:15 +0400
parents 55e3aa43021d
children 75fafd8ced59
line wrap: on
line source

#include "BSPModel.h"
#include "Allocator.h"



//----- (00478389) --------------------------------------------------------
void BSPModel::Release()
{
  BSPModel *v1; // esi@1
  void *v2; // ST00_4@1
  void *v3; // ST00_4@1
  void *v4; // ST00_4@1

  v1 = this;
  pAllocator->FreeChunk(*(void **)&this->pVertices.pVertices);
  v2 = v1->pFaces;
  v1->pVertices.pVertices = 0;
  pAllocator->FreeChunk(v2);
  v3 = v1->pFacesOrdering;
  v1->pFaces = 0;
  pAllocator->FreeChunk(v3);
  v4 = v1->pNodes;
  v1->pFacesOrdering = 0;
  pAllocator->FreeChunk(v4);
  v1->pNodes = 0;
  v1->uNumNodes = 0;
  v1->uNumFaces = 0;
  v1->pVertices.uNumVertices = 0;
  v1->uNumConvexFaces = 0;
}