X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?p=free-sw%2Fxcb%2Flibxcb;a=blobdiff_plain;f=src%2Fxcb_conn.c;h=fa509858628ee50d013bc2966c23242d0d302abd;hp=ab901a90657ecb8bb6e40707b9c98f9db2321b2f;hb=2fb14e5883f2ea2f01d248674cfcc26ccb704753;hpb=4dcbfd77b78ca6b016ce815af26235501f6cd75a diff --git a/src/xcb_conn.c b/src/xcb_conn.c index ab901a9..fa50985 100644 --- a/src/xcb_conn.c +++ b/src/xcb_conn.c @@ -350,7 +350,7 @@ xcb_connection_t *xcb_connect_to_fd(int fd, xcb_auth_info_t *auth_info) void xcb_disconnect(xcb_connection_t *c) { - if(is_static_error_conn(c)) + if(c == NULL || is_static_error_conn(c)) return; free(c->setup);