Skip to content

Commit

Permalink
Merge pull request #4730 from rainers/issue16386
Browse files Browse the repository at this point in the history
fix issue 16386: std.concurrency: destructors called twice on objects passed as Message
  • Loading branch information
andralex authored Aug 15, 2016
2 parents d753c8e + 17d064e commit 3040070
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion std/concurrency.d
Original file line number Diff line number Diff line change
Expand Up @@ -2405,9 +2405,14 @@ private
}
}
if (n)
*n = Node(v);
{
import std.conv : emplace;
emplace!Node(n, v);
}
else
{
n = new Node(v);
}
return n;
}

Expand Down

0 comments on commit 3040070

Please sign in to comment.