UnityCapture icon indicating copy to clipboard operation
UnityCapture copied to clipboard

Memory Leakage when repeating create and delete instance

Open hansuk-kim-wst opened this issue 1 year ago • 0 comments

I am using UnityCaptureFilter for my project. There is a memory leakage when deleting sender instance if there is at least one receiver. Adding UnmapViewOfFile in the destructor of SharedImageMemory solves it.

~SharedImageMemory()
{
	...
	if (m_pSharedBuf) UnmapViewOfFile(m_pSharedBuf);	// added. prevent memory leak.
}

hansuk-kim-wst avatar Mar 04 '24 18:03 hansuk-kim-wst