08.11.2014 Views

Memory Management - Poco

Memory Management - Poco

Memory Management - Poco

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AutoReleasePool<br />

> The <strong>Poco</strong>::AutoReleasePool class template takes care of<br />

(reference counted) objects that nobody else wants.<br />

> #include "<strong>Poco</strong>/AutoReleasePool.h"<br />

> <strong>Poco</strong>::AutoReleasePool takes ownership of every object added to<br />

it.<br />

> When the <strong>Poco</strong>::AutoReleasePool is destroyed (or its release()<br />

method is called), it releases the references to all objects it holds,<br />

by invoking each object's release() method.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!