Changeset 00e3e4101653be55e430b35d6fcb8d5b86df269d

Show
Ignore:
Timestamp:
05/16/08 18:06:25 (4 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1210953985 +0300
git-parent:

[8dba805732a431558c1218104dfeb667d9b5df63]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1210953985 +0300
Message:

Make vlc_object_detach a no-op if the object is not attached

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/objects.c

    r8dba805 r00e3e41  
    919919static void vlc_object_detach_unlocked (vlc_object_t *p_this) 
    920920{ 
    921     assert (p_this->p_parent); 
     921    vlc_assert_locked (&structure_lock); 
     922 
     923    if (p_this->p_parent == NULL) 
     924        return; 
    922925 
    923926    vlc_object_internals_t *priv = vlc_internals( p_this->p_parent );