src/ldtypes.cpp

changeset 194
cfe9ae5f1124
parent 192
c414924a647c
child 198
f246725199dc
--- a/src/ldtypes.cpp	Mon May 13 00:04:54 2013 +0300
+++ b/src/ldtypes.cpp	Mon May 13 19:53:22 2013 +0300
@@ -212,6 +212,9 @@
 	for (ulong i = 0; i < g_win->sel ().size(); ++i)
 		if (g_win->sel ()[i] == this)
 			g_win->sel ().erase (g_win->sel ().begin() + i);
+	
+	// Delete the GL lists
+	GL::deleteLists (this);
 }
 
 // =============================================================================

mercurial