diff options
author | deva <deva> | 2005-06-16 21:28:57 +0000 |
---|---|---|
committer | deva <deva> | 2005-06-16 21:28:57 +0000 |
commit | e0592745a40dae2e14e5b6d9226f41a293ababc9 (patch) | |
tree | b3640c07fd6af71aa01bed384613ffda6c03bf41 /src/frame.cc | |
parent | c397f2dcdc399b43cf150f8000e711fc20613deb (diff) |
Rewrote thread object
Fixed bug in mov_encoder (pushed read_sem too many times, whihc lead to
growing server queue)
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; } |