From 39ed518cc429c7576d18bad1e1babd2f5dada280 Mon Sep 17 00:00:00 2001 From: Dimitar Petrovski Date: Mon, 17 Mar 2014 09:09:26 +0100 Subject: test conv_to before deletion --- util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); -- cgit v1.2.3