[vlc-commits] objects: small simplification
Rémi Denis-Courmont
git at videolan.org
Sun Dec 13 17:20:31 CET 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 13 16:17:14 2015 +0200| [2ef4a9ad09e24cf4211bcb83cbabdd5fede6f7ae] | committer: Rémi Denis-Courmont
objects: small simplification
No functional changes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ef4a9ad09e24cf4211bcb83cbabdd5fede6f7ae
---
src/misc/objects.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/misc/objects.c b/src/misc/objects.c
index 43d04b2..f3af1db 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -319,7 +319,7 @@ static void vlc_object_destroy( vlc_object_t *p_this )
if( p_priv->pf_destructor )
p_priv->pf_destructor( p_this );
- if (unlikely(p_this == VLC_OBJECT(p_this->p_libvlc)))
+ if (unlikely(p_this->p_parent == NULL))
{
/* TODO: should be in src/libvlc.c */
var_DelCallback (p_this, "vars", VarsCommand, NULL);
More information about the vlc-commits
mailing list