Skip to content
Snippets Groups Projects
Commit 250d6564 authored by Lieven Govaerts's avatar Lieven Govaerts Committed by Andrews Sobral
Browse files

Fix a memory leak when destroying the IndependentMultimodal object. (#109)

* Fix a memory leak when deosrtying the IndependentMultimodal object. Ensure internally used objects
stored in arrays are destroyed correctly.

* package_bgs/IMBS/IMBS.hpp
  (Bins, BgModel): Add initialize function and destructor to cover the lifecycle of its member variables.

* package_bgs/IMBS/IMBS.cpp
  (BackgroundSubtractorIMBS::initialize): Use the new Bins and BgModel initialize functions.

* Whitespace-only fix.

* package_bgs/IMBS/IMBS.hpp
  (~BgModel, ~Bins): Cleanup whitespaces.
parent cc483c60
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment