WPrefs: fix memory leak when editing the label of a menu (Coverity #50130)
commit27a2259934aabb98b90adc633ab8366205284a5e
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 31 May 2014 17:58:44 +0000 (31 19:58 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 1 Jun 2014 19:35:06 +0000 (1 20:35 +0100)
tree87226f57b03945eebb63b7d4c379092dd1db1678
parentc54bb11ee9caeffe716b3f7d240f76afe991e965
WPrefs: fix memory leak when editing the label of a menu (Coverity #50130)

As pointed by Coverity, the function 'WMGetTextFieldText' already allocates
memory for its return string, so it is not necessary to wstrdup it.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WPrefs.app/editmenu.c