[vlc-commits] commit: variables: properly reset the variable tree in var_DestroyAll() ( Pierre Ynard )

git at videolan.org git at videolan.org
Wed Nov 24 17:56:15 CET 2010


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | 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



More information about the vlc-commits mailing list