summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2014-03-17 08:09:26 (GMT)
committerDimitar Petrovski <dimeptr@gmail.com>2014-03-17 08:09:26 (GMT)
commit39ed518cc429c7576d18bad1e1babd2f5dada280 (patch)
treeb4cae49b6631ac1714b3862b856ed2e0828316e1
parent6a6db913ac85b4144f3144ab50a7e6f89ef9640b (diff)
downloadvdr-plugin-eepg-39ed518cc429c7576d18bad1e1babd2f5dada280.tar.gz
vdr-plugin-eepg-39ed518cc429c7576d18bad1e1babd2f5dada280.tar.bz2
test conv_to before deletion
-rw-r--r--util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.c b/util.c
index f70c520..96a80fd 100644
--- a/util.c
+++ b/util.c
@@ -492,7 +492,8 @@ void cCharsetFixer::InitCharsets(const cChannel* Channel)
if (!fixedCharset.empty()) {
- delete conv_to;
+ if (conv_to)
+ delete conv_to;
conv_to = new cCharSetConv(fixedCharset.c_str());