RFR: 8334868: Ensure CheckUninstallModalHook is called in WPageDialogPeer._show
Alexey Ivanov
aivanov at openjdk.org
Thu Jun 27 13:15:10 UTC 2024
On Thu, 27 Jun 2024 12:54:55 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
> > …I believe I was referring to the use of C++'s std::unique_ptr, which has the functionality for cleanup that we need.
>
> Yes, `std::unique_ptr` could be useful for handling automatic deallocation of objects created with the `new` operator.
>
> ~~It won't help with releasing references to Java objects though.~~
Since `std::unique_ptr` accepts a custom deleter, it may be used for deleting any object.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19867#issuecomment-2194662542
More information about the client-libs-dev
mailing list