]> git.sesse.net Git - vlc/commitdiff
Hum fix a memleak in test4 ...
authorRémi Duraffort <ivoire@videolan.org>
Wed, 13 Aug 2008 22:28:00 +0000 (00:28 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 13 Aug 2008 22:28:00 +0000 (00:28 +0200)
modules/misc/testsuite/test4.c

index 7ce10159a5b7cc35dd8657306484223b02d55bec..170992ee72ce20537844ba0301ee5762156a7c54 100644 (file)
@@ -99,16 +99,19 @@ static int Foo( vlc_object_t *p_this, char const *psz_cmd,
     var_Change( p_this, "honk", VLC_VAR_SETDEFAULT, &val, NULL );
 
     var_Get( p_this, "honk", &val ); printf( "value: %s\n", val.psz_string );
+    free( val.psz_string );
 
     val.psz_string = "foo";
     var_Set( p_this, "honk", val );
 
     var_Get( p_this, "honk", &val ); printf( "value: %s\n", val.psz_string );
+    free( val.psz_string );
 
     val.psz_string = "blork";
     var_Set( p_this, "honk", val );
 
     var_Get( p_this, "honk", &val ); printf( "value: %s\n", val.psz_string );
+    free( val.psz_string );
 
     val.psz_string = "baz";
     var_Change( p_this, "honk", VLC_VAR_DELCHOICE, &val, NULL );