[gnome-software] trivial: Fix a warning when launching the 2nd instance
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix a warning when launching the 2nd instance
- Date: Thu, 20 Apr 2017 18:52:42 +0000 (UTC)
commit 75b78269efdf5e1c60b7d8249b4e66252f706bd4
Author: Richard Hughes <richard hughsie com>
Date: Thu Apr 20 19:49:02 2017 +0100
trivial: Fix a warning when launching the 2nd instance
lib/gs-debug.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/lib/gs-debug.c b/lib/gs-debug.c
index dd825e9..3b61f6c 100644
--- a/lib/gs-debug.c
+++ b/lib/gs-debug.c
@@ -167,7 +167,9 @@ gs_debug_init (GsDebug *debug)
g_mutex_init (&debug->mutex);
debug->use_time = g_getenv ("GS_DEBUG_NO_TIME") == NULL;
debug->use_color = (isatty (fileno (stdout)) == 1);
- g_log_set_writer_func (gs_debug_log_writer, debug, NULL);
+ g_log_set_writer_func (gs_debug_log_writer,
+ g_object_ref (debug),
+ (GDestroyNotify) g_object_unref);
}
GsDebug *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]