diff options
Diffstat (limited to 'libxcb/src/xcb_ext.c')
-rw-r--r-- | libxcb/src/xcb_ext.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libxcb/src/xcb_ext.c b/libxcb/src/xcb_ext.c index 831f28381..990c67a96 100644 --- a/libxcb/src/xcb_ext.c +++ b/libxcb/src/xcb_ext.c @@ -123,6 +123,8 @@ int _xcb_ext_init(xcb_connection_t *c) void _xcb_ext_destroy(xcb_connection_t *c) { + if (!c->ext.lock) + return; /* mutex is not initialised */ pthread_mutex_destroy(&c->ext.lock); while(c->ext.extensions_size-- > 0) if(c->ext.extensions[c->ext.extensions_size].tag == LAZY_FORCED) |