mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
playtree: free parameter values when entry is freed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33364 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
74a85b8600
commit
a71340bd40
@ -68,7 +68,14 @@ play_tree_free(play_tree_t* pt, int children) {
|
||||
for(iter = pt->child ; iter != NULL ; iter = iter->next)
|
||||
iter->parent = NULL;
|
||||
|
||||
//free(pt->params);
|
||||
if (pt->params) {
|
||||
int i;
|
||||
for(i = 0 ; pt->params[i].name != NULL ; i++) {
|
||||
free(pt->params[i].name);
|
||||
free(pt->params[i].value);
|
||||
}
|
||||
free(pt->params);
|
||||
}
|
||||
if(pt->files) {
|
||||
int i;
|
||||
for(i = 0 ; pt->files[i] != NULL ; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user