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

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


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

Changeset: 
M  /trunk/Scribus/scribus/hyphenator.cpp

Diffs:
Index: scribus/hyphenator.cpp
===================================================================
--- scribus/hyphenator.cpp	(revision 14333)
+++ scribus/hyphenator.cpp	(revision 14334)
@@ -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