[UI] Corrected memleaks

This commit is contained in:
emeric
2014-12-07 19:33:04 +01:00
parent cbf10b62d0
commit b35ed6afca
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ class AudioFormModel : public Wt::WFormModel
Database::User::pointer user = Database::User::getById(_db.getSession(), _userId);
_bitrateModel = new Wt::WStringListModel();
_bitrateModel = new Wt::WStringListModel(this);
BOOST_FOREACH(std::size_t bitrate, Database::User::audioBitrates)
{
if (user && bitrate <= user->getMaxAudioBitrate())