Avoid a segmentation fault if opening the Android control socket failed.

This commit is contained in:
Tobias Brunner 2010-06-22 16:18:22 +02:00
parent 61c950d9aa
commit f283520faf
1 changed files with 1 additions and 1 deletions

View File

@ -64,10 +64,10 @@ METHOD(plugin_t, destroy, void,
&this->handler->handler);
charon->credentials->remove_set(charon->credentials, &this->creds->set);
charon->bus->remove_listener(charon->bus, &this->logger->listener);
this->service->destroy(this->service);
this->creds->destroy(this->creds);
this->handler->destroy(this->handler);
this->logger->destroy(this->logger);
DESTROY_IF(this->service);
free(this);
}