Whoops, obvious typo. We need to free the face if the refcount drops to
zero and not if it is non-zero.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
{
manager_lock();
- if (--face->ref) {
+ if (!--face->ref) {
kmscon_dlist_unlink(&face->list);
kmscon_hashtable_free(face->glyphs);
pthread_mutex_destroy(&face->glyph_lock);
{
manager_lock();
- if (--face->ref) {
+ if (!--face->ref) {
kmscon_dlist_unlink(&face->list);
kmscon_hashtable_free(face->glyphs);
pthread_mutex_destroy(&face->glyph_lock);