Make the objfile destructor private
[deliverable/binutils-gdb.git] / gdb / compile / compile-object-run.c
index 8173cfea6809a21366585a1473a05db4ae8298a0..72f3060243e8094901e0be206f38bd3ed1740968 100644 (file)
@@ -86,7 +86,7 @@ do_module_cleanup (void *arg, int registers_valid)
     if ((objfile->flags & OBJF_USERLOADED) == 0
         && (strcmp (objfile_name (objfile), data->objfile_name_string) == 0))
       {
-       delete objfile;
+       objfile->unlink ();
 
        /* It may be a bit too pervasive in this dummy_frame dtor callback.  */
        clear_symtab_users (0);
This page took 0.025024 seconds and 4 git commands to generate.