summaryrefslogtreecommitdiff
path: root/lib/frame.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 /lib/frame.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 'lib/frame.cc')
-rw-r--r--lib/frame.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/frame.cc b/lib/frame.cc
index b3ad28f..472a03a 100644
--- a/lib/frame.cc
+++ b/lib/frame.cc
@@ -42,6 +42,9 @@ Frame::Frame(char *vframe, int vframesize, int vformat,
this->aframe = aframe;
this->aframesize = aframesize;
this->aformat = aformat;
+
+ // FIX... remove when old code is removed
+ data = NULL;
}
@@ -70,7 +73,7 @@ Frame::Frame(unsigned char *d, int sz)
Frame::~Frame()
{
- delete data;
+ if(data) delete data;
data = NULL;
size = 0;
}