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



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

    gmessages: Initialize GPrivate so it gets cleaned up
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711744

 glib/gmessages.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/glib/gmessages.c b/glib/gmessages.c
index 26018cd..c30ad70 100644
--- a/glib/gmessages.c
+++ b/glib/gmessages.c
@@ -64,6 +64,7 @@
 #include "glib-init.h"
 #include "gbacktrace.h"
 #include "gcharset.h"
+#include "gcleanup.h"
 #include "gconvert.h"
 #include "genviron.h"
 #include "gmem.h"
@@ -263,7 +264,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]