mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 03:40:57 +00:00
Fix memory leak on cmd::TrimCel
This commit is contained in:
parent
8b242bdf06
commit
e68eebda1c
@ -34,6 +34,11 @@ TrimCel::TrimCel(Cel* cel)
|
||||
}
|
||||
}
|
||||
|
||||
TrimCel::~TrimCel()
|
||||
{
|
||||
delete m_subCmd;
|
||||
}
|
||||
|
||||
void TrimCel::onExecute()
|
||||
{
|
||||
m_subCmd->execute(context());
|
||||
|
@ -21,6 +21,7 @@ namespace cmd {
|
||||
class TrimCel : public Cmd {
|
||||
public:
|
||||
TrimCel(doc::Cel* cel);
|
||||
~TrimCel();
|
||||
|
||||
protected:
|
||||
void onExecute() override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user