summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>2012-11-30 16:03:38 -0500
committerroot <root@avtech.domain.avtechpulse.com>2012-11-30 16:03:38 -0500
commit04b10a008d3786bc38a4c4c80fb31572db81de1a (patch)
treeabc80f50dff7094db08992002920e2f16fd58825
parentb49a4e3d3f5e4005c4b1070979b7510011862233 (diff)
fixed huge mutex memory leak
-rw-r--r--menus.c2
1 files changed, 1 insertions, 1 deletions
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 ("");