src/ldtypes.cpp

changeset 528
e38d199ef9aa
parent 527
47c068f2e7e3
child 538
2f85d4d286e5
child 665
4355e72ffd47
--- a/src/ldtypes.cpp	Tue Oct 22 19:28:45 2013 +0300
+++ b/src/ldtypes.cpp	Tue Oct 22 19:33:41 2013 +0300
@@ -268,6 +268,10 @@
 	if (selected())
 		unselect();
 
+	// If this object was associated to a file, remove it off it now
+	if (file())
+		file()->forgetObject (this);
+
 	// Delete the GL lists
 	GL::deleteLists (this);
 

mercurial