From 04b10a008d3786bc38a4c4c80fb31572db81de1a Mon Sep 17 00:00:00 2001 From: root Date: Fri, 30 Nov 2012 16:03:38 -0500 Subject: fixed huge mutex memory leak --- menus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'menus.c') diff --git a/menus.c b/menus.c index 4c47319..6608b33 100644 --- a/menus.c +++ b/menus.c @@ -262,7 +262,7 @@ void Show_Main_Menu(void) if (!globals.Sys.startup_complete) return; - GStaticMutex mutex = G_STATIC_MUTEX_INIT; + static GStaticMutex mutex = G_STATIC_MUTEX_INIT; g_static_mutex_lock (&mutex); // can be triggered simultaneously by local or remote users GString *menu_string = g_string_new (""); -- cgit