Skype: Try to ShutdownProtobufLibrary() before exit
This commit is contained in:
parent
e585f67f9f
commit
631bd92de9
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,7 @@ static gboolean transportDataReceived(GIOChannel *source, GIOCondition condition
|
|||
if (n <= 0) {
|
||||
LOG4CXX_INFO(logger, "Diconnecting from spectrum2 server");
|
||||
Logging::shutdownLogging();
|
||||
google::protobuf::ShutdownProtobufLibrary();
|
||||
exit(errno);
|
||||
}
|
||||
std::string d = std::string(buffer, n);
|
||||
|
@ -76,6 +77,7 @@ static int create_socket(const char *host, int portno) {
|
|||
// strerror() will not work for gethostbyname() and hstrerror()
|
||||
// is supposedly obsolete
|
||||
Logging::shutdownLogging();
|
||||
google::protobuf::ShutdownProtobufLibrary();
|
||||
exit(1);
|
||||
}
|
||||
serv_addr.sin_addr.s_addr = *((unsigned long *) hos->h_addr_list[0]);
|
||||
|
@ -93,6 +95,7 @@ static int create_socket(const char *host, int portno) {
|
|||
|
||||
static void io_destroy(gpointer data) {
|
||||
Logging::shutdownLogging();
|
||||
google::protobuf::ShutdownProtobufLibrary();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -148,6 +151,7 @@ void SkypePlugin::handleLogoutRequest(const std::string &user, const std::string
|
|||
LOG4CXX_INFO(logger, "User wants to logout, logging out");
|
||||
skype->logout();
|
||||
Logging::shutdownLogging();
|
||||
google::protobuf::ShutdownProtobufLibrary();
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue