binpac: Add virtual dtor to RefCount base class.

The code generated for types w/ &refcount will subclass RefCount and
Unref definitely deletes via a pointer to that base class so it needs a
virtual dtor.
This commit is contained in:
Jon Siwek 2013-09-19 12:33:57 -05:00 committed by Tim Wojtulewicz
parent 4d7de63ef0
commit 13e14768da

View file

@ -150,6 +150,7 @@ class RefCount
{
public:
RefCount() { count = 1; }
virtual ~RefCount() {}
void Ref() { ++count; }
int Unref() { BINPAC_ASSERT(count > 0); return --count; }