From dedea3f94802f0f9d9adef4c48f8061282baf776 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Dan=20Hor=C3=A1k?= Date: Mon, 23 Nov 2009 10:13:48 +0100 Subject: [PATCH] check hdict value before freeing the hyphenator --- Scribus/scribus/hyphenator.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Scribus/scribus/hyphenator.cpp b/Scribus/scribus/hyphenator.cpp index 614db47..4da4467 100644 --- a/Scribus/scribus/hyphenator.cpp +++ b/Scribus/scribus/hyphenator.cpp @@ -90,7 +90,8 @@ Hyphenator::Hyphenator(QWidget* parent, ScribusDoc *dok) : QObject( parent ), Hyphenator::~Hyphenator() { - hnj_hyphen_free(hdict); + if (hdict) + hnj_hyphen_free(hdict); } void Hyphenator::NewDict(const QString& name) -- 1.6.3.3