vlc | branch: master | Pierre Ynard <[email protected]> | Wed Nov 24 17:48:08 
2010 +0100| [7ba20d426503e4efd0c2f8b5364c2ad46afa4eb2] | committer: Pierre 
Ynard 

variables: properly reset the variable tree in var_DestroyAll()

This allows using it at another time than destroying the object

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ba20d426503e4efd0c2f8b5364c2ad46afa4eb2
---

 src/misc/variables.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/misc/variables.c b/src/misc/variables.c
index c91cb41..0675a54 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -358,6 +358,7 @@ void var_DestroyAll( vlc_object_t *obj )
     vlc_object_internals_t *priv = vlc_internals( obj );
 
     tdestroy( priv->var_root, CleanupVar );
+    priv->var_root = NULL;
 }
 
 #undef var_Change

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to