Skip to content

Commit

Permalink
Fix memory leaks in VAggregate
Browse files Browse the repository at this point in the history
  • Loading branch information
HolyWu committed May 24, 2015
1 parent 230c412 commit 0caa6ab
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 0caa6ab

Please sign in to comment.