Index: remove.c =================================================================== --- remove.c (revision 13852) +++ remove.c (revision 13853) @@ -82,7 +82,6 @@ pcb_opctx_t ctx; ctx.remove.pcb = PCB; - ctx.remove.bulk = pcb_true; ctx.remove.destroy_target = NULL; if (pcb_selected_operation(PCB, PCB->Data, &RemoveFunctions, &ctx, pcb_false, PCB_TYPEMASK_ALL)) { @@ -103,20 +102,22 @@ void *ptr; ctx.remove.pcb = PCB; - ctx.remove.bulk = pcb_false; ctx.remove.destroy_target = NULL; ptr = pcb_object_operation(&RemoveFunctions, &ctx, Type, Ptr1, Ptr2, Ptr3); + pcb_draw(); return ptr; } void *pcb_destroy_object(pcb_data_t *Target, int Type, void *Ptr1, void *Ptr2, void *Ptr3) { + void *res; pcb_opctx_t ctx; ctx.remove.pcb = PCB; - ctx.remove.bulk = pcb_false; ctx.remove.destroy_target = Target; - return (pcb_object_operation(&DestroyFunctions, &ctx, Type, Ptr1, Ptr2, Ptr3)); + res = pcb_object_operation(&DestroyFunctions, &ctx, Type, Ptr1, Ptr2, Ptr3); + pcb_draw(); + return res; }