Mitigate serious task_for_pid() leak (from bc0fa6c)

--HG--
branch : stable
Fix bug where icon may not be fetched for launched target (from a3c0df5)

--HG--
branch : stable