fixed remaining memory leaks when instantiating/deleting abstractions (see previous commit).