src/Document.cc

changeset 640
d4dda62c6600
parent 639
851634b85893
child 642
751a8df42842
--- a/src/Document.cc	Wed Mar 05 02:33:58 2014 +0200
+++ b/src/Document.cc	Wed Mar 05 03:39:31 2014 +0200
@@ -142,11 +142,11 @@
 
 	// Clear everything from the model
 	for (LDObject* obj : getObjects())
-		obj->deleteSelf();
+		obj->destroy();
 
 	// Clear the cache as well
 	for (LDObject* obj : getCache())
-		obj->deleteSelf();
+		obj->destroy();
 
 	delete m_History;
 	delete m_gldata;
@@ -357,7 +357,7 @@
 	if (isAborted())
 	{
 		for (LDObject* obj : m_Objects)
-			obj->deleteSelf();
+			obj->destroy();
 
 		m_Objects.clear();
 		setDone (true);

mercurial