ircam-ismm / pipo

pipo modules library
https://ircam-ismm.github.io/pipo
27 stars 2 forks source link

improve PiPoCollection.cpp #5

Open josephlarralde opened 6 years ago

josephlarralde commented 6 years ago

The std::map used by the factory might leak. Check that every call to "new" has its corresponding call to "delete", and that already existing PiPoCreators don't get instantiated more than once. (the constructor of PiPoHost : calls PiPoCollection::init(). What if we create a lot of hosts ?)