[glib/wip/gcleanup] gmessages: Initialize GPrivate so it gets cleaned up



commit 33f787feb3066bc11e6af4ff7fa66754dad47a4c
Author: Stef Walter <stefw gnome org>
Date:   Thu Nov 7 22:39:37 2013 +0100

    gmessages: Initialize GPrivate so it gets cleaned up

 glib/gmessages.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gmessages.c b/glib/gmessages.c
index 26018cd..cd68eac 100644
--- a/glib/gmessages.c
+++ b/glib/gmessages.c
@@ -263,7 +263,7 @@ static GMutex         g_messages_lock;
 static GLogDomain    *g_log_domains = NULL;
 static GPrintFunc     glib_print_func = NULL;
 static GPrintFunc     glib_printerr_func = NULL;
-static GPrivate       g_log_depth;
+static GPrivate       g_log_depth = G_PRIVATE_INIT (NULL);
 static gboolean       exit_on_fatal;
 static GLogFunc       default_log_func = g_log_default_handler;
 static gpointer       default_log_data = NULL;


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