3 Nov
2025
3 Nov
'25
4:14 p.m.
On Mon Nov 3 16:10:23 2025 +0000, Vibhav Pant wrote:
I have simplified `CreateExceptionWithMessage` to call `AllocateExceptionWithWeakRef` outside `TRY`, so `create_exception_cleanup` doesn't need to check for NULL. I have also factored out the freeing code from `Exception_Release` into `exception_free` so that we can reuse it in `create_exception_cleanup`. finally is called even if there's no exception - it's easiest to use AddRef/Release to handle that. Current code frees the exception object also on success.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9209#note_120535