commit | 10d4af4e9cfe30117b52af95fcdd7f7954244001 | [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 | c05333cd48935b9eafea3483647457cf8b9f5cf5 | |
parent | 5046a7e2376ca9aefa0cf285d7c107e6a5d483e4 [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.