src/ldtypes.cpp

changeset 194
cfe9ae5f1124
parent 192
c414924a647c
child 198
f246725199dc
equal deleted inserted replaced
193:ce8e25ccbaf6 194:cfe9ae5f1124
210 LDObject::~LDObject () { 210 LDObject::~LDObject () {
211 // Remove this object from the selection array if it is there. 211 // Remove this object from the selection array if it is there.
212 for (ulong i = 0; i < g_win->sel ().size(); ++i) 212 for (ulong i = 0; i < g_win->sel ().size(); ++i)
213 if (g_win->sel ()[i] == this) 213 if (g_win->sel ()[i] == this)
214 g_win->sel ().erase (g_win->sel ().begin() + i); 214 g_win->sel ().erase (g_win->sel ().begin() + i);
215
216 // Delete the GL lists
217 GL::deleteLists (this);
215 } 218 }
216 219
217 // ============================================================================= 220 // =============================================================================
218 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 221 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
219 // ============================================================================= 222 // =============================================================================

mercurial