WMaker: fix memory leak in window inspector (Coverity #50116)
commit4894e3fe4d03b92de1dd1e4ba2b037068960c0bf
authorChristophe CURIS <christophe.curis@free.fr>
Tue, 20 May 2014 19:46:31 +0000 (20 21:46 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 20 May 2014 20:29:56 +0000 (20 21:29 +0100)
tree5f2d8113c7a66d60915964fcd124a46578389003
parent43972d307ad232d926c250becc3ad80e866f1494
WMaker: fix memory leak in window inspector (Coverity #50116)

As pointed by Coverity, in this specific case the string previously stored
in 'file' was lost when replaced with the string from 'db_icon'. The logic
have been simplified to avoid the case.

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