This is an automated email from the git hooks/post-receive script. thansen pushed a commit to branch master in repository aseprite.
commit e68eebda1c55d1ec161654c727b43dfb3824b553 Author: David Capello <[email protected]> Date: Wed May 11 12:59:32 2016 -0300 Fix memory leak on cmd::TrimCel --- src/app/cmd/trim_cel.cpp | 5 +++++ src/app/cmd/trim_cel.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/app/cmd/trim_cel.cpp b/src/app/cmd/trim_cel.cpp index c4605bc..7b13d9e 100644 --- a/src/app/cmd/trim_cel.cpp +++ b/src/app/cmd/trim_cel.cpp @@ -34,6 +34,11 @@ TrimCel::TrimCel(Cel* cel) } } +TrimCel::~TrimCel() +{ + delete m_subCmd; +} + void TrimCel::onExecute() { m_subCmd->execute(context()); diff --git a/src/app/cmd/trim_cel.h b/src/app/cmd/trim_cel.h index e8cced1..3b9ec57 100644 --- a/src/app/cmd/trim_cel.h +++ b/src/app/cmd/trim_cel.h @@ -21,6 +21,7 @@ namespace cmd { class TrimCel : public Cmd { public: TrimCel(doc::Cel* cel); + ~TrimCel(); protected: void onExecute() override; -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

