From 0ea14121a8a3dae863e8623624ecb83c0de1dfed Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 23 Feb 2005 07:32:30 +0000 Subject: Fix a potential crash when quitting. Obtained from: FreeBSD ports tree git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3699 df743ca5-7f9a-e211-a948-0013205c9059 --- accessibility/dasher/Makefile | 2 +- accessibility/dasher/files/patch-Src_Gtk2_speech.cc | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 accessibility/dasher/files/patch-Src_Gtk2_speech.cc diff --git a/accessibility/dasher/Makefile b/accessibility/dasher/Makefile index d7c1b8965..43def7422 100644 --- a/accessibility/dasher/Makefile +++ b/accessibility/dasher/Makefile @@ -7,7 +7,7 @@ PORTNAME= dasher PORTVERSION= 3.2.13 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= accessibility editors x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/3.2 diff --git a/accessibility/dasher/files/patch-Src_Gtk2_speech.cc b/accessibility/dasher/files/patch-Src_Gtk2_speech.cc new file mode 100644 index 000000000..62e4675df --- /dev/null +++ b/accessibility/dasher/files/patch-Src_Gtk2_speech.cc @@ -0,0 +1,12 @@ +--- Src/Gtk2/speech.cc.orig Wed Feb 23 02:30:15 2005 ++++ Src/Gtk2/speech.cc Wed Feb 23 02:30:44 2005 +@@ -78,7 +78,8 @@ + void teardown_speech() { + + bonobo_object_release_unref (speaker, NULL); +- CORBA_free (voices); ++ if (voices != NULL && voices->_length != 0) ++ CORBA_free (voices); + CORBA_exception_free (&ev); + + } -- cgit v1.2.3