delete authenticator when destructing. reduce memleak

pull/2356/head
Isaac Connor 2018-05-25 14:20:54 -04:00
parent e831c1563d
commit 52de6ef7ea
1 changed files with 4 additions and 0 deletions

View File

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