]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/controls.m
Create a function to free the memory allocated when calling
[vlc] / modules / gui / macosx / controls.m
index 084c7f1f4c7820854e97526600357dce3d0c0bdc..88a6b004ab61d164094a4b7e50b0eee64c671451 100644 (file)
 
     /* clean up everything */
     if( (i_type & VLC_VAR_TYPE) == VLC_VAR_STRING ) free( val.psz_string );
-    var_Change( p_object, psz_variable, VLC_VAR_FREELIST, &val_list, &text_list );
+    var_FreeList( &val_list, &text_list );
 }
 
 - (IBAction)toggleVar:(id)sender