WINGs: fix possible NULL pointer dereference in WMFreeColorPanel (Coverity #50189)
commit21c891e6691ba20c144c17e96a1970efcfcb60ec
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 18 May 2014 19:31:48 +0000 (18 21:31 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 18 May 2014 22:01:43 +0000 (18 23:01 +0100)
treeec07ae8ec7a99186c98f006da6ed2113babb1fba
parent354ec080ade371b77f35ca22015643f387fa9ff2
WINGs: fix possible NULL pointer dereference in WMFreeColorPanel (Coverity #50189)

As pointed by Coverity, the code was checking for NULL pointer to avoid
misbehaviour, but it actually dereferenced the pointer beforehand so the
crash would still happen.

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