[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make spd_open threadsafe
From: |
Jeremy Whiting |
Subject: |
make spd_open threadsafe |
Date: |
Sat, 5 Sep 2009 22:13:54 -0600 |
In kttsd I was encountering a crash when I called spd_open from one class to
check to see if speech-dispatcher is running, then call spd_open from a dialog
invoked by the previous class to get some data from speech-dispatcher
(available languages, and voices, etc.)
Because g_get_user_name() returns a static char * which is then free'd at the
end of the method, the second call to spd_open crashes. I've included a patch
for the crash that fixes it in my case.
thanks,
Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spd_open_threadsafe.patch
Type: text/x-patch
Size: 1009 bytes
Desc: not available
URL:
<http://lists.freebsoft.org/pipermail/speechd/attachments/20090905/1ea3555d/attachment.bin>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- make spd_open threadsafe,
Jeremy Whiting <=