Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lukas-w committed Nov 24, 2017
1 parent aa1406b commit c9c22e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/shared_object.h
Expand Up @@ -61,7 +61,7 @@ class sharedObject

if ( deleteObject )
{
delete object;
object->deleteLater();
}
}

Expand Down

0 comments on commit c9c22e4

Please sign in to comment.