Commits

Jed Brown committed 5878ec2

PetscHeaderDestroy: call PetscObjectDestroyOptionsHandlers

Otherwise the options handler destroy method never gets called.

Comments (0)

Files changed (1)

src/sys/objects/inherit.c

 
     ierr = (*python_destroy)(python_context);CHKERRQ(ierr);
   }
+  ierr = PetscObjectDestroyOptionsHandlers(h);CHKERRQ(ierr);
   ierr = PetscObjectListDestroy(&h->olist);CHKERRQ(ierr);
   ierr = PetscCommDestroy(&h->comm);CHKERRQ(ierr);
   /* next destroy other things */
 #undef __FUNCT__
 #define __FUNCT__ "PetscObjectDestroyOptionsHandlers"
 /*@C
-    PetscObjectDestroyOptionsHandlers - Destroys all the option handlers attached to an objeft
+    PetscObjectDestroyOptionsHandlers - Destroys all the option handlers attached to an object
 
     Not Collective