1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-08 14:54:13 +01:00

WINGs: Fix crash on exit while trying to save user config changes

Recent patches has introduced the ability to exit cleanly from the WINGs
library, but this introduced some side effects because a function is
registered with 'atexit' to save user config on exit, which may not work
anymore because WMReleaseApplication frees some stuff needed for that task.

This patch handles this so that both method works, in case user of the lib
would forget to call the clean exit function.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2014-05-09 09:45:27 +02:00
committed by Carlos R. Mafra
parent 1b2e8a6491
commit a2328d9842
4 changed files with 60 additions and 3 deletions

View File

@@ -81,6 +81,7 @@ libWUtil_la_SOURCES = \
string.c \
tree.c \
userdefaults.c \
userdefaults.h \
usleep.c \
wapplication.c \
wconfig.h \