# HG changeset patch # User Chris Cannam # Date 1578580161 0 # Node ID 27f3e64489e16a537b64b71e7ae563d6c87c5121 # Parent e6e7a8dc3b3814d5e956fd47bca9be3d05f9850c Give timer a parent so as not to leak it diff -r e6e7a8dc3b38 -r 27f3e64489e1 view/View.cpp --- a/view/View.cpp Wed Jan 08 15:29:02 2020 +0000 +++ b/view/View.cpp Thu Jan 09 14:29:21 2020 +0000 @@ -862,7 +862,7 @@ pbr.cancel = cancel; pbr.bar = pb; pbr.lastStallCheckValue = 0; - pbr.stallCheckTimer = new QTimer(); + pbr.stallCheckTimer = new QTimer(this); connect(pbr.stallCheckTimer, SIGNAL(timeout()), this, SLOT(progressCheckStalledTimerElapsed()));