diff options
Diffstat (limited to 'client/decoder.cc')
-rw-r--r-- | client/decoder.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/client/decoder.cc b/client/decoder.cc index c7a5097..ebd5087 100644 --- a/client/decoder.cc +++ b/client/decoder.cc @@ -75,6 +75,11 @@ void Decoder::run() if(!dvframe) continue; // An empty frame Frame *yuvframe = dvdecoder.decode(dvframe); // Decode the DV frame to YUV422 and PCM audio + + if(dvframe->vframe) delete dvframe->vframe; + if(dvframe->aframe) delete dvframe->aframe; + delete dvframe; + if(!yuvframe) continue; // An error ocurred if(MIaV::control.isFrozen() == false) { @@ -126,7 +131,10 @@ void Decoder::run() sendersmutex.unlock(); - // free(frame); + if(yuvframe->vframe) delete yuvframe->vframe; + if(yuvframe->aframe) delete yuvframe->aframe; + delete yuvframe; + newconnection = true; } |