[libglnx] console: Fix g_auto() and unlock cleanup



commit 34a96c03dd34636e654e8258b94da904d2923878
Author: Colin Walters <walters verbum org>
Date:   Mon Jan 25 10:23:34 2016 -0500

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glnx-console.c b/glnx-console.c
index deb4c86..0911eaf 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;
 }


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