Skip to content

Commit

Permalink
shared_object: Use deleteLater in unref for thread safety
Browse files Browse the repository at this point in the history
This makes unref safe when it's not called from within the object's thread.

Fixes LMMS#4009
  • Loading branch information
lukas-w committed Nov 24, 2017
1 parent a1bede5 commit dbc53a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/shared_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class sharedObject

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

Expand Down

0 comments on commit dbc53a3

Please sign in to comment.