diff options
| author | phintuka <phintuka> | 2007-12-19 21:31:47 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2007-12-19 21:31:47 +0000 |
| commit | 4f0a1203027893e50fc6058683f31c7eb0c175b6 (patch) | |
| tree | c942839adcbfe6b461b3a4fea6ca838b58463dd1 | |
| parent | b42bc35489676b7b9f81fdce31853eef3b030ed8 (diff) | |
| download | xineliboutput-4f0a1203027893e50fc6058683f31c7eb0c175b6.tar.gz xineliboutput-4f0a1203027893e50fc6058683f31c7eb0c175b6.tar.bz2 | |
Don't use xine_strdupa
| -rw-r--r-- | xine/post.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xine/post.c b/xine/post.c index 9b42b2ec..f4874470 100644 --- a/xine/post.c +++ b/xine/post.c @@ -230,14 +230,13 @@ static post_element_t **pplugin_parse_and_load(fe_t *fe, int *post_elements_num) { post_element_t **post_elements = NULL; - char *post_chain; *post_elements_num = 0; if(pchain && strlen(pchain)) { - char *p; + char *post_chain, *freeme, *p; - xine_strdupa(post_chain, pchain); + freeme = post_chain = strdup(pchain); while((p = xine_strsep(&post_chain, ";"))) { @@ -299,6 +298,7 @@ static post_element_t **pplugin_parse_and_load(fe_t *fe, free(plugin); } } + free(freeme); } return post_elements; |
