Thread: Avisynth+
View Single Post
Old 25th October 2014, 13:34   #844  |  Link
chainik_svp
Registered User
 
Join Date: Mar 2012
Location: Saint-Petersburg
Posts: 239
Code:
 [for every frame]
  {
    VideoFrame *frame = it->second;
    if (frame->vfb->refcount == 0)
      delete frame->vfb;

	delete frame;
  }
why "if (frame->vfb->refcount == 0)" ??
vfb->refcount decremented in VideoFrame destructor so it can be (and it IS) >0
and ~VideoFrame doesn't delete vfb but just releases it

=====
Fixed it, see https://github.com/AviSynth/AviSynthPlus/issues/49

Is there any chance to include this fix to the main branch and release a new official build?
__________________
SVPflow motion interpolation

Last edited by chainik_svp; 25th October 2014 at 15:20.
chainik_svp is offline