Move call to linestack to src/.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 5 Apr 2009 16:07:02 +0000 (18:07 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 5 Apr 2009 16:07:02 +0000 (18:07 +0200)
libirc/connection.c
src/network.c

index 732a61755cea114080cb7eab2739827540be3036..158a1b499796013d0a284c2150969a46115e886f 100644 (file)
@@ -638,8 +638,6 @@ static gboolean close_server(struct irc_network *n)
        }
 
        if (n->external_state) {
-               if (n->linestack != NULL)
-                       free_linestack_context(n->linestack);
                n->linestack = NULL;
                free_network_state(n->external_state); 
                n->external_state = NULL;
index 9ac76f7a45e1fc69eaa6ace162a291b0a2f01f96..4332921836ec871a020e4e7398441471f03e9280 100644 (file)
@@ -374,6 +374,8 @@ static struct irc_login_details *get_login_details(struct irc_network *s)
 static void handle_network_disconnect(struct irc_network *n)
 {
        redirect_clear(&n->queries);
+       if (n->linestack != NULL)
+               free_linestack_context(n->linestack);
 }
 
 struct irc_network_callbacks default_callbacks = {