summaryrefslogtreecommitdiff
path: root/lib/frame.cc
diff options
context:
space:
mode:
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;
}