forked from bartvdbraak/blender
Solved descriptors leak in OCIO module on windows
Seems was simply caused by wrong destructor used in processorRelease
This commit is contained in:
parent
3583686433
commit
eb75e43685
@ -48,7 +48,7 @@ using namespace OCIO_NAMESPACE;
|
||||
#endif
|
||||
|
||||
#define MEM_NEW(type) new(MEM_mallocN(sizeof(type), __func__)) type()
|
||||
#define MEM_DELETE(what, type) if(what) { (what)->~type(); MEM_freeN(what); } (void)0
|
||||
#define MEM_DELETE(what, type) if(what) { ((type*)(what))->~type(); MEM_freeN(what); } (void)0
|
||||
|
||||
static void OCIO_reportError(const char *err)
|
||||
{
|
||||
@ -421,8 +421,7 @@ void OCIOImpl::processorApplyRGBA_predivide(OCIO_ConstProcessorRcPtr *processor,
|
||||
|
||||
void OCIOImpl::processorRelease(OCIO_ConstProcessorRcPtr *p)
|
||||
{
|
||||
p->~OCIO_ConstProcessorRcPtr();
|
||||
MEM_freeN(p);
|
||||
MEM_DELETE(p, ConstProcessorRcPtr);
|
||||
}
|
||||
|
||||
const char *OCIOImpl::colorSpaceGetName(OCIO_ConstColorSpaceRcPtr *cs)
|
||||
|
Loading…
Reference in New Issue
Block a user