diff options
author | Colin Walters <walters@verbum.org> | 2016-01-25 10:23:34 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2016-01-25 11:25:19 -0500 |
commit | 34a96c03dd34636e654e8258b94da904d2923878 (patch) | |
tree | cf46bf713b73c42916ecc3c87522bb24e5d00bd5 | |
parent | aac5a6cef72caa7cb26092db2923b70223005c6d (diff) | |
download | libglnx-34a96c03dd34636e654e8258b94da904d2923878.tar.gz |
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.
-rw-r--r-- | 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; } |