Skip to content
  • Rémi Denis-Courmont's avatar
    Remove useless i_refcount == 0 case and fix a tiny race condition. · 19bd84c7
    Rémi Denis-Courmont authored
    When i_refcount drops to zero (under the structure lock), the object is
    removed from the objects table before the structure lock is released.
    Hence, no objects with a nul refcount can ever be left in the table.
    
    There is an unlikely race condition if another object is removed from
    the table right between we unlock the structure lock but before we
    return from vlc_object_get() (so that the i_middle offset gets wrong).
    19bd84c7