Thread: Avisynth+
View Single Post
Old 25th October 2014, 21:49   #846  |  Link
chainik_svp
Registered User
 
Join Date: Mar 2012
Location: Saint-Petersburg
Posts: 239
this isn't all the truth

if the filter was instantiated - it'll never be deleted...

in other words if you'll write some filter doing something like this:

SomeFilter::SomeFilter()
{ buffer = new BYTE[1000000000]; }

SomeFilter::~SomeFilter()
{ delete[] buffer; }

than you'll end with 1 GB of memory stolen cause it'll never be freed
__________________
SVPflow motion interpolation

Last edited by chainik_svp; 25th October 2014 at 21:54.
chainik_svp is offline