Changeset - 631bd92de9b7
[Not reviewed]
0 1 0
HanzZ - 12 years ago 2013-02-12 21:43:34
hanzz.k@gmail.com
Skype: Try to ShutdownProtobufLibrary() before exit
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
backends/skype/skypeplugin.cpp
Show inline comments
 
@@ -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);
 
	}
 
}
0 comments (0 inline, 0 general)