src/ldtypes.cc

changeset 564
79b23e02dcf1
parent 562
c4ff45e98551
child 565
e403aad83f60
--- a/src/ldtypes.cc	Wed Dec 18 23:38:45 2013 +0200
+++ b/src/ldtypes.cc	Thu Dec 19 00:59:49 2013 +0200
@@ -273,6 +273,13 @@
 
 // =============================================================================
 // -----------------------------------------------------------------------------
+LDSubfile::~LDSubfile()
+{	// The document this subfile referenced may be unused now, delete if needed.
+	LDDocument::closeUnused();
+}
+
+// =============================================================================
+// -----------------------------------------------------------------------------
 void LDObject::deleteSelf()
 {	// If this object was selected, unselect it now
 	if (isSelected())

mercurial