commit | f0adf848ffffeca86f4c0210ea237883d9e5e8d5 | [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 | 5b6c8e231a6105d5a3ee14e68118d14874fee12b | |
parent | 7151edd5d83b3b770a0dc77cf52f7fe56b2a3af6 [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.