Considering how annoying this bug is to everyone (and me as well, causing crashes across multiple Qt apps), I made a PR on GitHub: https://github.com/libproxy/libproxy/pull/5