summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());