LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File bnc-831609-festival-crash.patch of Package speech-dispatcher (Project hardware)

diff -ur speech-dispatcher-0.8.orig/src/modules/festival.c speech-dispatcher-0.8/src/modules/festival.c
--- speech-dispatcher-0.8.orig/src/modules/festival.c	2012-07-11 04:05:06.000000000 -0500
+++ speech-dispatcher-0.8/src/modules/festival.c	2013-09-27 11:11:06.363143496 -0500
@@ -469,7 +469,8 @@
 	// festivalClose(festival_info);
 
 	DBG("Terminating threads");
-	module_terminate_thread(festival_speak_thread);
+	if (festival_speak_thread)
+		module_terminate_thread(festival_speak_thread);
 
 	if (festival_info)
 		delete_FT_Info(festival_info);