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/session.h | |
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/session.h')
-rw-r--r-- | src/session.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/session.h b/src/session.h index df91469..489ec0e 100644 --- a/src/session.h +++ b/src/session.h @@ -38,6 +38,7 @@ extern int GetWindowConfig(TwmWindow *theWindow, short *x, short *y, Bool *width_ever_changed_by_user, Bool *height_ever_changed_by_user); extern void ReadWinConfigFile(char *filename); +extern void DestroySession(void); extern SmcConn smcConn; |