June 19, 2026
2:59 p.m.
On Fri Jun 19 14:52:34 2026 +0000, Esme Povirk wrote:
Yes, I believe it was there previously because we didn't have the ability to store the metafile handle in the object we're creating. So whoever wrote that must have thought that it was better to free the handle early and risk the application using it, than to leak it. Or perhaps they only considered the ownership convention (application is transferring ownership of the handle to the callee, at least in the case of success) and did not consider that an application might depend on the handle's lifetime being tied to the object.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/11180#note_143647