delete authenticator when destructing. reduce memleak

This commit is contained in:
Isaac Connor committed 2018-05-25 14:20:54 -04:00
1 parent e831c1563d
commit 52de6ef7ea
1 file changed
+4
+4
View File
@@ -55,6 +55,10 @@ RemoteCamera::~RemoteCamera() {
freeaddrinfo(hp);
hp = NULL;
}
if ( mAuthenticator ) {
delete mAuthenticator;
mAuthenticator = NULL;
}
}
void RemoteCamera::Initialise() {