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