[interfacekit] BBlockCache bug
- From: "burton666@xxxxxxxxx" <burton666@xxxxxxxxx>
- To: "interfacekit" <interfacekit@xxxxxxxxxxxxx>
- Date: Wed, 27 Aug 2003 10:43:40 +0200
About BBlockCache ... I guess I caught the destructor bug:
BBlockCache::~BBlockCache()
{
delete[] (int8*)fCache;
}
since fCache is allocated as
fCache = (void *)new _Block[CacheSize];
it should be deleted as
delete[] (_Block *)fCache;
I can't fix it now since I am on a windows machine (at work :P), if no one is
faster I see if I can fix it within this week.
A more important note: The current BBlockCache implementation just use malloc
or new... shouldn't it use a proper memory allocator?
Yeah, I know the last BlockCache commit shows my name, but it was just a
cleanup. The original implementation was by Massimiliano Origgi.
- Follow-Ups:
- [interfacekit] Re: BBlockCache bug
- From: Ingo Weinhold
Other related posts:
- » [interfacekit] BBlockCache bug
- » [interfacekit] Re: BBlockCache bug
- » [interfacekit] Re: BBlockCache bug
- » [interfacekit] Re: BBlockCache bug
- » [interfacekit] Re: BBlockCache bug
- » [interfacekit] Re: BBlockCache bug
- » [interfacekit] Re: BBlockCache bug
- » [interfacekit] Re: BBlockCache bug
- » [interfacekit] Re: BBlockCache bug
- » [interfacekit] Re: BBlockCache bug
- » [interfacekit] Re: BBlockCache bug
- » [interfacekit] Re: BBlockCache bug
- [interfacekit] Re: BBlockCache bug
- From: Ingo Weinhold