commit | 262a583f2da846e8c74d82712957bcdcc88d169a | [log] [tgz] |
---|---|---|
author | Andreas Huber <andih@google.com> | Thu Jul 16 10:05:57 2009 -0700 |
committer | Andreas Huber <andih@google.com> | Thu Jul 16 10:05:57 2009 -0700 |
tree | dca5a2e456e41655a644044fd9500ce1b8ac3b8b | |
parent | d0c0e46a4408b22599bc588ea423d9102bcee6bf [diff] |
Make MemoryDealer's destructor protected instead of public. MemoryDealer, like all other subclasses of RefBase,MUST NOT BE stack-allocated, a protected destructor prohibits stack-allocation while allowing the baseclass to properly invoke the subclass' destructor once the refcount drops to 0.