Fix memory leak on cmd::TrimCel

This commit is contained in:
David Capello 2016-05-11 12:59:32 -03:00
parent 8b242bdf06
commit e68eebda1c
2 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,11 @@ TrimCel::TrimCel(Cel* cel)
}
}
TrimCel::~TrimCel()
{
delete m_subCmd;
}
void TrimCel::onExecute()
{
m_subCmd->execute(context());

View File

@ -21,6 +21,7 @@ namespace cmd {
class TrimCel : public Cmd {
public:
TrimCel(doc::Cel* cel);
~TrimCel();
protected:
void onExecute() override;