]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/libs/variables.c
Create a function to free the memory allocated when calling
[vlc] / modules / misc / lua / libs / variables.c
index 16833bc6c405ead000018a01504bfbd1e4b5d739..15e86491332c82069ec8e0ea07243a9603064120 100644 (file)
@@ -200,7 +200,7 @@ static int vlclua_var_get_list( lua_State *L )
     if( i_ret < 0 ) return vlclua_push_ret( L, i_ret );
     vlclua_pushvalue( L, VLC_VAR_LIST, val );
     vlclua_pushvalue( L, VLC_VAR_LIST, text );
-    var_Change( *pp_obj, psz_var, VLC_VAR_FREELIST, &val, &text );
+    var_FreeList( &val, &text );
     return 2;
 }