aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/disposer.hpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* utils: add disposer helperAlexander Sulfrian2013-01-131-0/+57
The disposer helper should be used to encapsulate disposable objects. This objects have to cleanup something before deconstruction and so you need to help dispose before destruction of the object. The disposer takes care for you. On destruction of the disposer, it calls dispose of the encapsulated object and then destroy it, too. So you do not need to remember to call dispose manually.