Mercurial > hg > svgui
comparison layer/TimeValueLayer.cpp @ 852:6c6e34b09688
Fix minor resource leak (from coverity scan)
author | Chris Cannam |
---|---|
date | Wed, 03 Sep 2014 11:51:51 +0100 |
parents | cf23656a8ca6 |
children | 33157c3f0e80 |
comparison
equal
deleted
inserted
replaced
851:cf23656a8ca6 | 852:6c6e34b09688 |
---|---|
1794 bool ok = false; | 1794 bool ok = false; |
1795 QString selected = ListInputDialog::getItem | 1795 QString selected = ListInputDialog::getItem |
1796 (0, tr("Choose value calculation"), | 1796 (0, tr("Choose value calculation"), |
1797 text, options, prevSelection, &ok); | 1797 text, options, prevSelection, &ok); |
1798 | 1798 |
1799 if (!ok) return false; | 1799 if (!ok) { |
1800 delete command; | |
1801 return false; | |
1802 } | |
1800 int selection = 0; | 1803 int selection = 0; |
1801 generation = Labeller::ValueNone; | 1804 generation = Labeller::ValueNone; |
1802 | 1805 |
1803 for (QStringList::const_iterator i = options.begin(); | 1806 for (QStringList::const_iterator i = options.begin(); |
1804 i != options.end(); ++i) { | 1807 i != options.end(); ++i) { |