src/extprogs.cc

changeset 560
39085791128f
parent 557
04e140bdeb0b
child 569
0d6fce0628fe
--- a/src/extprogs.cc	Wed Dec 18 17:03:35 2013 +0200
+++ b/src/extprogs.cc	Wed Dec 18 17:44:31 2013 +0200
@@ -157,7 +157,7 @@
 			writeObjects (objs, f);
 
 			for (LDObject* obj : objs)
-				delete obj;
+				obj->deleteSelf();
 		}
 		else
 			f.write (obj->raw() + "\r\n");
@@ -282,7 +282,7 @@
 
 	for (LDObject * obj : objs)
 	{	if (!obj->isScemantic())
-		{	delete obj;
+		{	obj->deleteSelf();
 			continue;
 		}
 

mercurial