Browse Source

example: make it obvious you need to delete the ipc object

master
parent
commit
f9cf3009d9
Signed by: govanify GPG Key ID: DE62E1E2A6145556
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/client.cpp

+ 5
- 0
src/client.cpp View File

@ -120,5 +120,10 @@ auto main(int argc, char *argv[]) -> int {
// (while true) so it will never do so.
first.join();
// we do not forget to free our IPC object to avoid any memory leak,
// although they will technically get automatically freed by the OS at
// process shutdown
delete ipc;
return 0;
}

Loading…
Cancel
Save