From 16bca58803c5ff76de20889bc064f22e5305b9ed Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Mon, 22 Feb 2021 16:28:34 +0100 Subject: blinking cursor and fix net --- net/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/net.c') diff --git a/net/net.c b/net/net.c index 4dc79f2..0a2dc98 100644 --- a/net/net.c +++ b/net/net.c @@ -117,8 +117,8 @@ int net_client_recv (net_client *c, char buffer[]) { void net_client_close (net_client *c) { if (c->socket != NULL) p_socket_close (c->socket, NULL); - p_socket_address_free (c->addr_server); - p_socket_free (c->socket); + if (c->addr_server != NULL) p_socket_address_free (c->addr_server); + if (c->socket != NULL) p_socket_free (c->socket); } -- cgit v1.2.3-54-g00ecf