mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibIPC: Add an on_destruction hook to IPC::Message
Any cleanup of resources needed (up until the message is sent) can be done here. Currently, the only such resource is an IPC::File.
This commit is contained in:
parent
b03e8a6d06
commit
bdd4b99d72
2 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,8 @@ Message::Message()
|
|||
|
||||
Message::~Message()
|
||||
{
|
||||
if (on_destruction)
|
||||
on_destruction();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue