Changeset 4580 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Jun 10, 2005, 3:13:40 AM (19 years ago)
- Location:
- orxonox/trunk/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/array.h
r4579 r4580 67 67 this->firstEntry = new Entry; 68 68 this->firstEntry->next =NULL; 69 this->currentEntry =firstEntry;69 this->currentEntry = this->firstEntry; 70 70 this->finalized = false; 71 71 this->entryCount = 0; //0 means one entry … … 109 109 walker = walker->next; 110 110 } 111 walker = this->firstEntry; 112 Entry* previous; 113 while (walker) 114 { 115 previous = walker; 116 walker = walker->next; 117 delete previous; 118 } 119 this->firstEntry = NULL; 111 120 this->finalized = true; 112 121 } … … 130 139 } 131 140 else 132 PRINTF(2)("adding failed, because list hasbeen finalized\n");141 PRINTF(2)("adding failed, because array has already been finalized\n"); 133 142 } 134 143 -
orxonox/trunk/src/lib/graphics/importer/model.cc
r4579 r4580 176 176 delete this->firstGroup; 177 177 178 // deleting Arrays 178 // deleting Arrays (if not allready done by finalize) 179 179 this->deleteArrays(); 180 180 … … 203 203 204 204 // deletes everything we allocated. 205 if (this->type == MODEL_DISPLAY_LIST)206 this->deleteArrays();205 //if (this->type == MODEL_DISPLAY_LIST) 206 //this->deleteArrays(); 207 207 this->cleanup(); 208 208
Note: See TracChangeset
for help on using the changeset viewer.