Post #865963
2026-03-30 20:58 UTC
Always nice when a "bug" that you couldn't quite put your finger on turns out to be an elementary mistake in your model of how things worked. (Of course you're going to get a double-free if you explicitly delete all of a widget's resources by reaching through a shared pointer with a refcount greater than 1. The old C code didn't care if there were dangling pointers, but Rust will run the Drop impl a second time after the last Rc is destroyed...)
Replies (1)
-
@trurl@mastodon.sdf.org 2026-03-30 21:01
no, wait, that wasn't the problem either. sigh.