[tracker] libtracker-common: Reset default log handler in tracker_log_shutdown



commit 28334ae1392e42941a34de99710762e4336d32d7
Author: Jürg Billeter <j bitron ch>
Date:   Mon Sep 13 16:01:19 2010 +0200

    libtracker-common: Reset default log handler in tracker_log_shutdown
    
    Fixes NB#184220.

 src/libtracker-common/tracker-log.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-common/tracker-log.c b/src/libtracker-common/tracker-log.c
index 880363f..057f27b 100644
--- a/src/libtracker-common/tracker-log.c
+++ b/src/libtracker-common/tracker-log.c
@@ -247,15 +247,18 @@ tracker_log_shutdown (void)
 		return;
 	}
 
-	if (fd) {
-		fclose (fd);
-	}
+	/* Reset default log handler */
+	g_log_set_default_handler (g_log_default_handler, NULL);
 
 	if (log_handler_id) {
 		g_log_remove_handler (G_LOG_DOMAIN, log_handler_id);
 		log_handler_id = 0;
 	}
 
+	if (fd) {
+		fclose (fd);
+	}
+
 	g_mutex_free (mutex);
 
 	initialized = FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]