]> git.sesse.net Git - vlc/commit
variables: VAR_CLASS != VAR_TYPE
authorDerk-Jan Hartman <hartman@videolan.org>
Fri, 19 Sep 2008 12:16:15 +0000 (14:16 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Fri, 19 Sep 2008 12:22:06 +0000 (14:22 +0200)
commitd411c31cf573a227ffee4470addeccfb9e25633d
tree1bd216b00f18c8e023ab9de6f1bc927e6e05850c
parent45e43037a961531a28444d969f903c18929b06b9
variables: VAR_CLASS != VAR_TYPE

This should fix a memleak with variable strings, and several other problems. Note that a CLASS detemines the basic type, and that TYPE is only a specific set within the CLASS. The variable types: VLC_VAR_KEY and VLC_VAR_INTEGER are both of CLASS integer. and thus compatible, when it comes to inheritence/init/free etc.
src/misc/variables.c