Skip to content

Memory Leakage when repeating create and delete instance #40

@hansuk-kim-wst

Description

@hansuk-kim-wst

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.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions