Running progam with _CRTDBG_MAP_ALLOC indicates there's a memory leak after capture. Adding EventStorage dtor solves the issue. ``` EventStorage(); ~EventStorage() { Clear(false); } ```