Skip to content

fix(core): BufferObject are still locked after shallowCopy of Image

Description

Resetting the counter in the destructor BEFORE resetting BufferObject shared pointer is required ! Otherwise, the lock count assert in the destruction of the buffer, in BufferManager::::unregisterBufferImpl() will be triggered.

Closes #796 (closed)

How to test it?

Test with and without this MR in Debug. Try an application with SDistorsion service like Tuto17SimpleAR.

Edited by Marc SCHWEITZER

Merge request reports