util: fix leaks in wmsetbg's changeTextureForWorkspace (Coverity #50169)
commit3250826215b0d346ef47e46008450c1c85dba067
authorChristophe CURIS <christophe.curis@free.fr>
Mon, 16 Jun 2014 18:15:24 +0000 (16 20:15 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 16 Jun 2014 19:00:09 +0000 (16 20:00 +0100)
tree69b0e8acac667be9caa51d38d171aaaf51f21ff1
parente5ebe0cb92a72538e195724e351dad905e7ee1db
util: fix leaks in wmsetbg's changeTextureForWorkspace (Coverity #50169)

As pointed by Coverity, some locally created PropList objects are not freed
when the function returns. The truth is their refCount is 1 more than what
they should be, but that's more than what Coverity can detect today.

This patch adds the appropriate release calls when they are not needed
anymore, which will actually not free them but get their refCount right so
they will be freed as soon as the PropList in which they are used are
released.

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