summaryrefslogtreecommitdiff
path: root/src/twm.c
diff options
context:
space:
mode:
authorTim Wiederhake <twied@gmx.net>2024-03-16 13:07:19 +0100
committerTim Wiederhake <twied@gmx.net>2024-03-16 13:07:19 +0100
commite60c2914c354d4725d170e4fe4f14456caccd3cc (patch)
tree748da23f35488aafa97b88ca57119d1217f71ff2 /src/twm.c
parent79b0987e63daff97ce9ee1dce883df13668a80c6 (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/twm.c b/src/twm.c
index 4be177c..1221bf8 100644
--- a/src/twm.c
+++ b/src/twm.c
@@ -905,6 +905,8 @@ Done(XtPointer client_data _X_UNUSED, XtSignalId *si2 _X_UNUSED)
Reborder(CurrentTime);
XCloseDisplay(dpy);
}
+
+ DestroySession();
exit(EXIT_SUCCESS);
}