Commit 6d57a6df authored by Isaac's avatar Isaac

It is better to leak memeory than segfault right?

parent e5aa6694
......@@ -667,13 +667,10 @@ impl MuThread {
return false;
} else {
warn!("current thread is attached to a different mu VM, changing this now");
Box::from_raw(cur.to_ptr_mut::<MuThread>()); // destroy old
// thread structure
// as we will be
// making a new one
// TODO: destroy
// associated stack
// as well?
// destroy old thread structure as we will be making a new one
// FIXME: segfaults when trying to drop an Arc?
//Box::from_raw(cur.to_ptr_mut::<MuThread>());
// TODO: destroy associated stack as well?
}
}
......
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