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.

Reference Counting and Ownership<br />

> A pointer taking ownership of an reference counted object does<br />

not increment its reference count.<br />

> This implies that there is no previous owner (in other words,<br />

the object has just been created),<br />

> or the previous owner gives up ownership (and thus does not<br />

decrement the object's reference count).<br />

> Usually, the first pointer an object is assigned to after its creation<br />

takes ownership. All others do not.

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

Saved successfully!

Ooh no, something went wrong!