libeplayer/text_srt: minor optimization

Origin commit data
------------------
Branch: master
Commit: 46a5151f07
Author: martii <m4rtii@gmx.de>
Date: 2013-08-04 (Sun, 04 Aug 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-08-04 16:42:21 +02:00
parent 5a2766caa4
commit 67746af006

View File

@@ -181,10 +181,7 @@ static void* SrtSubtitleThread(void *data) {
Text = strdup(Data);
} else {
int length = strlen(Text) /* \0 -> \n */ + strlen(Data) + 2 /* \0 */;
char * tmpText = strdup(Text);
free(Text);
char * tmpText = Text;
Text = (char*)malloc(length);
strcpy(Text, tmpText);