WMaker: fix memory leak in windows saved state handling (Coverity #50171)
commit32c8dc04ce40c72b19f11c90fddd2bd0329d9305
authorChristophe CURIS <christophe.curis@free.fr>
Tue, 20 May 2014 19:46:44 +0000 (20 21:46 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 20 May 2014 20:29:57 +0000 (20 21:29 +0100)
treed8079f901cd164da8a43f891fccb2701980e649c
parent4501d4c0786081fa27e4f0130bfed57547e52aa2
WMaker: fix memory leak in windows saved state handling (Coverity #50171)

As pointed by Coverity, the caller of the function 'getSavedState' assumes
that if the function returns 0 then the wstate is not initialised. This was
not actually true, so this patch changes 'getSavedState' to behave as
expected.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/window.c