]> git.sesse.net Git - vlc/commitdiff
Woops, object leak in previous commits
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 24 Sep 2009 17:33:52 +0000 (20:33 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 24 Sep 2009 17:33:52 +0000 (20:33 +0300)
src/misc/objects.c

index a4fbf3619c7540903a7d05916626a6592121ceb3..18f76fcdaec33e774030658d630c7568aee9d595 100644 (file)
@@ -597,7 +597,8 @@ void __vlc_object_release( vlc_object_t *p_this )
 
     if( b_should_destroy )
     {
-        if (p_this->p_parent)
+        parent = p_this->p_parent;
+        if (parent)
             /* Detach from parent to protect against FIND_CHILDREN */
             vlc_object_detach_unlocked (p_this);