Skip to content

Commit

Permalink
Merge pull request #5 from HomeOfVapourSynthEvolution/fix
Browse files Browse the repository at this point in the history
Fix memory leaks in VAggregate
  • Loading branch information
mawen1250 committed May 24, 2015
2 parents 230c412 + 0caa6ab commit 26796d7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/VAggregate.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,17 @@ class VAggregate_Process
}
}

virtual ~VAggregate_Process() override
{
for (int i = 0; i < frames; ++i)
{
if (i != cur)
{
vsapi->freeFrame(v_src[i]);
}
}
}

// Always output 16bit int or 32bit float Gray/YUV
static const VSFormat *NewFormat(const _Mydata &d, const VSFormat *f, VSCore *core, const VSAPI *vsapi)
{
Expand Down

0 comments on commit 26796d7

Please sign in to comment.