summaryrefslogtreecommitdiff
path: root/experimental/lmms/thread.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-20 20:38:17 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-20 20:38:17 +0000
commit66153ac5644682bc3868bceb3c25f0d6e9b9ccd3 (patch)
tree44b845e04751519bf1049be322a312a963c82656 /experimental/lmms/thread.patch
parent6c8123a19e741ca20f80a5a2d592d780480984f1 (diff)
downloadpackages-66153ac5644682bc3868bceb3c25f0d6e9b9ccd3.tar.gz
packages-66153ac5644682bc3868bceb3c25f0d6e9b9ccd3.tar.bz2
packages-66153ac5644682bc3868bceb3c25f0d6e9b9ccd3.tar.xz
packages-66153ac5644682bc3868bceb3c25f0d6e9b9ccd3.zip
experimental/lmms: new package (broken on BE)
Upstream tracker: https://github.com/LMMS/lmms/issues/4784
Diffstat (limited to 'experimental/lmms/thread.patch')
-rw-r--r--experimental/lmms/thread.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/experimental/lmms/thread.patch b/experimental/lmms/thread.patch
new file mode 100644
index 000000000..f8c293f4e
--- /dev/null
+++ b/experimental/lmms/thread.patch
@@ -0,0 +1,25 @@
+From c9c22e4a0e7c0de0cfaf8df101443d2d53fbdb31 Mon Sep 17 00:00:00 2001
+From: Lukas W <lukaswhl@gmail.com>
+Date: Fri, 24 Nov 2017 13:30:15 +0100
+Subject: [PATCH] shared_object: Use deleteLater in unref for thread safety
+
+This makes unref safe when it's not called from within the object's thread.
+
+Fixes #4009
+---
+ include/shared_object.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/shared_object.h b/include/shared_object.h
+index f39cb0e8bf..fe7a3d8e06 100644
+--- a/include/shared_object.h
++++ b/include/shared_object.h
+@@ -61,7 +61,7 @@ class sharedObject
+
+ if ( deleteObject )
+ {
+- delete object;
++ object->deleteLater();
+ }
+ }
+