Found a bug in "Everything"? report it here
- Posts: 23
- Joined: Mon May 04, 2015 10:30 am
I just installed the Deleaker
When using the Everything-SDK in my program, Deleaker reported a memory-leak for the
section setup in _Everything_Initialize()
Since this is never deleted, I patched Everything.c
Code: Select all
void EVERYTHINGAPI Everything_CleanUp(void)
_Everything_Initialized = 0;
I call Everything_CleanUp()
right before my program exit.
Not sure if this is correct thing to do.
But, the leak report in Deleaker vanished. Comments?
- Site Admin
- Posts: 5941
- Joined: Fri Oct 16, 2009 11:31 pm
Thanks for the SDK memory leak report.
This is an oversight on my behalf, sorry.
Your changes to Everything_CleanUp are correct.
I will updated the SDK to include these changes.
Calling DeleteCriticalSection(&_Everything_cs); in Everything_CleanUp and calling Everything_CleanUp on exit should fix the leak.