# HG changeset patch # User Chris Cannam # Date 1409741511 -3600 # Node ID 6c6e34b096887aa27caf6ec80606f31b7263812a # Parent cf23656a8ca691ad17433a49b7740f45a287e1cf Fix minor resource leak (from coverity scan) diff -r cf23656a8ca6 -r 6c6e34b09688 layer/TimeValueLayer.cpp --- a/layer/TimeValueLayer.cpp Wed Sep 03 11:49:31 2014 +0100 +++ b/layer/TimeValueLayer.cpp Wed Sep 03 11:51:51 2014 +0100 @@ -1796,7 +1796,10 @@ (0, tr("Choose value calculation"), text, options, prevSelection, &ok); - if (!ok) return false; + if (!ok) { + delete command; + return false; + } int selection = 0; generation = Labeller::ValueNone;