Commit c0976e35 authored by Davis King's avatar Davis King

changed the shared_ptr_thread_safe object so that it unlocks its

internal mutex before calling delete on the pointer that it contains.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402565
parent 9f7abda4
......@@ -152,13 +152,15 @@ namespace dlib
if (shared_node->del)
{
shared_node->del->del(data);
shared_node->m.unlock();
delete shared_node->del;
}
else
{
shared_node->m.unlock();
delete data;
}
shared_node->m.unlock();
// finally delete the shared_node
delete shared_node;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment