diff options
author | Tim Wiederhake <twied@gmx.net> | 2024-03-16 13:07:19 +0100 |
---|---|---|
committer | Tim Wiederhake <twied@gmx.net> | 2024-03-16 13:07:19 +0100 |
commit | e60c2914c354d4725d170e4fe4f14456caccd3cc (patch) | |
tree | 748da23f35488aafa97b88ca57119d1217f71ff2 /src/twm.c | |
parent | 79b0987e63daff97ce9ee1dce883df13668a80c6 (diff) |
Fix memory leak in SaveYourselfPhase2CB
Valgrind results before:
definitely lost: 981 bytes in 37 blocks
indirectly lost: 872 bytes in 6 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 991,316 bytes in 1,795 blocks
suppressed: 0 bytes in 0 blocks
Valgrind results after:
definitely lost: 800 bytes in 23 blocks
indirectly lost: 872 bytes in 6 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 991,316 bytes in 1,795 blocks
suppressed: 0 bytes in 0 blocks
Signed-off-by: Tim Wiederhake <twied@gmx.net>
Part-of: <https://gitlab.freedesktop.org/xorg/app/twm/-/merge_requests/29>
Diffstat (limited to 'src/twm.c')
-rw-r--r-- | src/twm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -905,6 +905,8 @@ Done(XtPointer client_data _X_UNUSED, XtSignalId *si2 _X_UNUSED) Reborder(CurrentTime); XCloseDisplay(dpy); } + + DestroySession(); exit(EXIT_SUCCESS); } |