delete authenticator when destructing. reduce memleak

This commit is contained in:
Isaac Connor
2018-05-25 14:20:54 -04:00
parent e831c1563d
commit 52de6ef7ea

View File

@@ -55,6 +55,10 @@ RemoteCamera::~RemoteCamera() {
freeaddrinfo(hp);
hp = NULL;
}
if ( mAuthenticator ) {
delete mAuthenticator;
mAuthenticator = NULL;
}
}
void RemoteCamera::Initialise() {