r14336 by jghali - #8595: crash when freeing non-existent hyphenator

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 23 21:55:51 CET 2009


Revision: 14336
Author: jghali
Date: 2009-11-23T11:50:58.857858Z
Commit message: #8595: crash when freeing non-existent hyphenator

Changeset: 
M  /branches/Version135/Scribus/scribus/hyphenator.cpp

Diffs:
Index: scribus/hyphenator.cpp
===================================================================
--- scribus/hyphenator.cpp	(revision 14335)
+++ scribus/hyphenator.cpp	(revision 14336)
@@ -90,7 +90,8 @@
 
 Hyphenator::~Hyphenator()
 {
-	hnj_hyphen_free(hdict);
+	if (hdict)
+		hnj_hyphen_free(hdict);
 }
 
 void Hyphenator::NewDict(const QString& name)




More information about the scribus-commit mailing list