src/protocols/trepia/trepia.c

changeset 5745
0263593cf0ce
parent 5739
b070eb327624
child 5751
8ea5c66e83cb
equal deleted inserted replaced
5744:138b30636f76 5745:0263593cf0ce
790 } 790 }
791 791
792 static void 792 static void
793 trepia_close(GaimConnection *gc) 793 trepia_close(GaimConnection *gc)
794 { 794 {
795 TrepiaSession *session = gc->proto_data;
796
795 __clear_user_list(gaim_connection_get_account(gc)); 797 __clear_user_list(gaim_connection_get_account(gc));
796 798
797 g_free(gc->proto_data); 799 if (session->rxqueue != NULL)
800 g_string_free(session->rxqueue, TRUE);
801
802 if (session->inpa)
803 gaim_input_remove(session->inpa);
804
805 close(session->fd);
806
807 g_free(session);
798 808
799 gc->proto_data = NULL; 809 gc->proto_data = NULL;
800 } 810 }
801 811
802 static int 812 static int

mercurial