summaryrefslogtreecommitdiffstats
path: root/codec-cfg.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-12 14:48:12 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-12 14:48:12 +0000
commitb78083276562c0391e200be6a6bf0ca87fd426cd (patch)
tree7635cac730cf6bdf2ee8d7d700c4bbaf3db2504f /codec-cfg.c
parent2f77f19cb87d4b6cdc65d61fbb50d4887c69beca (diff)
downloadmpv-b78083276562c0391e200be6a6bf0ca87fd426cd.tar.bz2
mpv-b78083276562c0391e200be6a6bf0ca87fd426cd.tar.xz
100l, free strdup'd strings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25691 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'codec-cfg.c')
-rw-r--r--codec-cfg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/codec-cfg.c b/codec-cfg.c
index 056e4b150e..636447eadc 100644
--- a/codec-cfg.c
+++ b/codec-cfg.c
@@ -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;
}