summaryrefslogtreecommitdiff
path: root/client/decoder.cc
diff options
context:
space:
mode:
authordeva <deva>2006-06-15 20:18:21 +0000
committerdeva <deva>2006-06-15 20:18:21 +0000
commit0f07334126048f16cf631e72e8708c2bf3c8a8e6 (patch)
tree6c9c5e71a92aaf1a47b78d8247078d0696f285af /client/decoder.cc
parent897867cc9d3bc869317666993a9cc6ef38c163e2 (diff)
Fixed the last pieces of the YUV drawin on the client, as well as a couple of huge memory leaks.
Diffstat (limited to 'client/decoder.cc')
-rw-r--r--client/decoder.cc10
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;
}