fix segfault (useless delete)