diff options
Diffstat (limited to 'src/frame.cc')
-rw-r--r-- | src/frame.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/frame.cc b/src/frame.cc index c6a2848..e204a2b 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -31,6 +31,11 @@ /* * $Log$ + * Revision 1.9 2005/06/16 21:28:57 deva + * Rewrote thread object + * Fixed bug in mov_encoder (pushed read_sem too many times, whihc lead to + * growing server queue) + * * Revision 1.8 2005/06/02 20:45:01 deva * * Added clear button @@ -56,7 +61,7 @@ Frame::Frame(unsigned char *d, int sz) { - if(sz) data = (unsigned char *)malloc(sz); + if(sz) data = new unsigned char[sz]; if(sz && d) memcpy(data, d, sz); size = sz; number = 0; @@ -64,7 +69,7 @@ Frame::Frame(unsigned char *d, int sz) Frame::~Frame() { - free(data); + delete data; data = NULL; size = 0; } |