From e60c2914c354d4725d170e4fe4f14456caccd3cc Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Sat, 16 Mar 2024 13:07:19 +0100 Subject: 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 Part-of: --- src/twm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/twm.c') 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); } -- cgit v1.2.3