WPrefs: fix memory leak in buildPLFromMenu (Coverity #50105)
commita9e2923f67a3256c5085c1d532a63b5e7f6da277
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 31 May 2014 17:58:42 +0000 (31 19:58 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 1 Jun 2014 19:35:06 +0000 (1 20:35 +0100)
treeef583fe5d017a5e66a4432d259d748c645a86ff9
parentdc2a991e219fa5c06a1294cac256fa44e7c9206a
WPrefs: fix memory leak in buildPLFromMenu (Coverity #50105)

As pointed by Coverity, the PLArray that is created to store the return
value of the function 'processData' can be left allocated if some case
handling decide to return NULL instead.

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