68 LDOBJ_DEFAULT_CTOR (LDBfc, LDObject) |
68 LDOBJ_DEFAULT_CTOR (LDBfc, LDObject) |
69 LDOBJ_DEFAULT_CTOR (LDBezierCurve, LDObject) |
69 LDOBJ_DEFAULT_CTOR (LDBezierCurve, LDObject) |
70 |
70 |
71 LDObject::~LDObject() |
71 LDObject::~LDObject() |
72 { |
72 { |
73 // Delete the GL lists |
|
74 if (g_win) |
|
75 g_win->renderer()->forgetObject(this); |
|
76 |
|
77 // Remove this object from the list of LDObjects |
73 // Remove this object from the list of LDObjects |
78 g_allObjects.erase(g_allObjects.find(id())); |
74 g_allObjects.erase(g_allObjects.find(id())); |
79 } |
75 } |
80 |
76 |
81 // ============================================================================= |
77 // ============================================================================= |