add a destructor for Assignment

This commit is contained in:
Stephen Birarda 2013-09-05 17:42:57 -07:00
parent bb6185ca36
commit 54b50e0e76
2 changed files with 6 additions and 0 deletions

View file

@ -70,6 +70,11 @@ Assignment::Assignment(const unsigned char* dataBuffer, int numBytes) :
}
}
Assignment::~Assignment() {
delete _domainSocket;
delete _pool;
}
int Assignment::packToBuffer(unsigned char* buffer) {
int numPackedBytes = 0;

View file

@ -28,6 +28,7 @@ public:
Assignment(Assignment::Direction direction, Assignment::Type type, const char* pool = NULL);
Assignment(const unsigned char* dataBuffer, int numBytes);
~Assignment();
Assignment::Direction getDirection() const { return _direction; }
Assignment::Type getType() const { return _type; }