Commit 8bc5169c authored by Jon Siwek's avatar Jon Siwek

Fix memory leak in scoped_actor.

parent e0d2c10a
...@@ -49,7 +49,7 @@ blocking_actor* alloc() { ...@@ -49,7 +49,7 @@ blocking_actor* alloc() {
} // namespace <anonymous> } // namespace <anonymous>
void scoped_actor::init(bool hide_actor) { void scoped_actor::init(bool hide_actor) {
m_self.reset(alloc()); m_self.reset(alloc(), false);
if (!hide_actor) { if (!hide_actor) {
m_prev = CAF_SET_AID(m_self->id()); m_prev = CAF_SET_AID(m_self->id());
} }
......
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