aboutsummaryrefslogtreecommitdiff
path: root/accessibility/dasher/files/patch-Src_Gtk2_speech.cc
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/dasher/files/patch-Src_Gtk2_speech.cc')
-rw-r--r--accessibility/dasher/files/patch-Src_Gtk2_speech.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/accessibility/dasher/files/patch-Src_Gtk2_speech.cc b/accessibility/dasher/files/patch-Src_Gtk2_speech.cc
index 93031e47f2c4..05d3c3b835fd 100644
--- a/accessibility/dasher/files/patch-Src_Gtk2_speech.cc
+++ b/accessibility/dasher/files/patch-Src_Gtk2_speech.cc
@@ -1,20 +1,11 @@
---- Src/Gtk2/speech.cc.orig Fri Jul 30 15:28:41 2004
-+++ Src/Gtk2/speech.cc Sun Feb 13 20:15:46 2005
-@@ -46,7 +46,7 @@
-
- voices = GNOME_Speech_SynthesisDriver_getAllVoices (rv, &ev);
-
-- if (voices==NULL || BONOBO_EX (&ev)) {
-+ if (voices==NULL || BONOBO_EX (&ev) || voices->_length==0) {
- printf(_("Unable to initialize voices"));
- speaker=NULL;
- return;
+--- Src/Gtk2/speech.cc.orig Fri Sep 17 06:53:53 2004
++++ Src/Gtk2/speech.cc Sat Feb 26 01:00:12 2005
@@ -78,7 +78,8 @@
void teardown_speech() {
bonobo_object_release_unref (speaker, NULL);
- CORBA_free (voices);
-+ if (voices != NULL && voices->_length != 0)
++ if (voices != NULL && !BONOBO_EX (&ev) && voices->_length != 0)
+ CORBA_free (voices);
CORBA_exception_free (&ev);