Skip to content

Commit c9c22e4

Browse files
committed
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
1 parent aa1406b commit c9c22e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/shared_object.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class sharedObject
6161

6262
if ( deleteObject )
6363
{
64-
delete object;
64+
object->deleteLater();
6565
}
6666
}
6767

0 commit comments

Comments
 (0)