-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
In ViBe::init(), a 3d array is applied, but it's released in a wrong way.
void ViBe::deleteSamples() { delete samples; }
It doesn't matter if ViBe.init() is just used once. But in the case where background should be built for many times, the program will crash due to a lack of memory.
The right way is to release the pointers one by one with the opposite order of applying for arrays.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels