From 34a96c03dd34636e654e8258b94da904d2923878 Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@verbum.org>
Date: Mon, 25 Jan 2016 10:23:34 -0500
Subject: [PATCH] console: Fix g_auto() and unlock cleanup

This way, one can unlock the console while still using the cleanup
macro.  Otherwise we miss a lot of the ergonomics of cleanup macros.
---
 glnx-console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glnx-console.c b/glnx-console.c
index deb4c86c3..0911eaff1 100644
--- a/glnx-console.c
+++ b/glnx-console.c
@@ -285,5 +285,5 @@ glnx_console_unlock (GLnxConsoleRef *console)
   if (console->is_tty)
     fputc ('\n', stdout);
       
-  locked = FALSE;
+  locked = console->locked = FALSE;
 }
-- 
GitLab