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
This commit is contained in:
@@ -61,7 +61,7 @@ public:
|
||||
|
||||
if ( deleteObject )
|
||||
{
|
||||
delete object;
|
||||
object->deleteLater();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user