On 03/03/2014 10:22 AM, Martin Gruner wrote:
> In Kernel/System/ObjectManager.pm:
>> +sub ObjectsDiscard {
>> +    my ( $Self, %Param ) = @_;
>> +
>> +    if ( $Param{Objects} ) {
>> +        for my $Object ( @{ $Param{Objects} } ) {
>> +            delete $Self->{Objects}{$Object};
> 
> I think this might not be sufficient. What if you discard an object that
> other objects (still) depend on? It would probably not be destroyed if
> the others still hold references. We might need to also destroy dependants.

We do, and I've pushed some commits that do this now.

Cheers,
Moritz