blob: f8c293f4ef430ddca5a6f0bb5ef85f521887c9e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
}
}
|