• Rémi Denis-Courmont's avatar
    Also remove the link fromn dead objects toward their children · 1f5fe769
    Rémi Denis-Courmont authored
    Previously, we only removed links from children to dead parents.
    This patch is semantically the same as Funman's earlier
    vlc_object_detach_unlocked() patch. It is merely faster and less clean.
    
    Unfortunately, this means it is impossible to detect leaked children.
    That being noted, leaving dead parents "semi-attached" in objects tree
    is not thread-safe anyhow. Basically, we either automatically detach
    objects (and miss leaks), or require children to be detached/destroyed
    before their parent is destroyed (and get leaks detection, but more
    coding pain).
    1f5fe769
objects.c 46.2 KB