diff --git a/src/zm_remote_camera.cpp b/src/zm_remote_camera.cpp index 0acd4e709..25a963a17 100644 --- a/src/zm_remote_camera.cpp +++ b/src/zm_remote_camera.cpp @@ -55,6 +55,10 @@ RemoteCamera::~RemoteCamera() { freeaddrinfo(hp); hp = NULL; } + if ( mAuthenticator ) { + delete mAuthenticator; + mAuthenticator = NULL; + } } void RemoteCamera::Initialise() {