mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-24 20:01:42 +00:00
Call iconv_close. Fix warning
This commit is contained in:
parent
7b4d93988f
commit
56e15a3be0
@ -395,7 +395,7 @@ char* EPG_DVB_decode_string(uint8_t *in, size_t size) {
|
||||
}
|
||||
|
||||
if((long)cd != -1 && !skipiconv) {
|
||||
ret = iconv(cd, (const char **)&in, &size, &dp, &obl);
|
||||
ret = iconv(cd, (char **)&in, &size, &dp, &obl);
|
||||
obl=decode_buffer_size-obl;
|
||||
decode_buffer[obl]=0x00;
|
||||
}
|
||||
@ -424,6 +424,8 @@ char* EPG_DVB_decode_string(uint8_t *in, size_t size) {
|
||||
memcpy(out, decode_buffer, osize);
|
||||
out[osize]=0x00;
|
||||
free(decode_buffer);
|
||||
if (cd != (iconv_t)-1)
|
||||
iconv_close(cd);
|
||||
return out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user