mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 10:17:31 +00:00
100l, free strdup'd strings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25691 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2f77f19cb8
commit
b780832765
@ -823,6 +823,8 @@ void stringset_init(stringset_t *set) {
|
||||
}
|
||||
|
||||
void stringset_free(stringset_t *set) {
|
||||
int count = 0;
|
||||
while ((*set)[count]) free((*set)[count++]);
|
||||
free(*set);
|
||||
*set = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user