void-packages/srcpkgs/yoshimi/patches/guithread.patch

22 lines
543 B
Diff
Raw Normal View History

2017-10-20 15:20:32 +02:00
--- src/main.cpp.orig 2017-10-15 22:35:17.000000000 +0200
+++ src/main.cpp 2017-10-22 15:26:56.153363369 +0200
@@ -97,6 +97,8 @@
static void *mainGuiThread(void *arg)
{
+ Fl::lock();
+
sem_post((sem_t *)arg);
map<SynthEngine *, MusicClient *>::iterator it;
@@ -334,9 +336,6 @@
int minVmajor = 1; // need to improve this idea
int minVminor = 5;
- // moved from mainGuiThread() to prevent leaking from early GuiThreadMessage
- Fl::lock();
-
if (!mainCreateNewInstance(0))
{
goto bail_out;