test_console: fix console deinitialization bug
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 26 Dec 2011 13:46:22 +0000 (14:46 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 26 Dec 2011 13:46:22 +0000 (14:46 +0100)
commit0f44dfdde84cc64f0b013d6154fe4f14ea7c3436
tree0a05fe7f45a1957199f26a6d419968d6797350e2
parent74d8ba5eea49b57e455be6990a8722c699a0abb7
test_console: fix console deinitialization bug

We must not destroy the compositor object if there is still a console using the
GL context. Otherwise we get a SEGFAULT when calling any gl* function.

In future we may need propoper dependencies here. We use reference counts so
this should be easy to implement.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
TODO
src/console.c
tests/test_console.c