ProgressManager: Fix potential leak

Detected by valgrind

Change-Id: I43ea6dcc67620074642164f552f61642250d9c90
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>