WINGs: Fix crash on exit while trying to save user config changes
commita2328d9842b521cbeab4cb71afb9bea6c47dae86
authorChristophe CURIS <christophe.curis@free.fr>
Fri, 9 May 2014 07:45:27 +0000 (9 09:45 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 9 May 2014 08:47:42 +0000 (9 09:47 +0100)
treed3ae2691ea7802cfcd42edcd7e7b8b8e98803b97
parent1b2e8a6491029912cef34e24d6ae4e28083d71ef
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>
WINGs/Makefile.am
WINGs/userdefaults.c
WINGs/userdefaults.h [new file with mode: 0644]
WINGs/wapplication.c