--- 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);