comparison src/protocols/msn/msn.c @ 8368:57e5ef6b7a69

[gaim-migrate @ 9095] This could possibly fix a segfault, but I'm not positive. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 29 Feb 2004 10:13:54 +0000
parents 85dbaac926a7
children 3d0178c4f390
comparison
equal deleted inserted replaced
8367:5f78e96ff135 8368:57e5ef6b7a69
502 static void 502 static void
503 msn_close(GaimConnection *gc) 503 msn_close(GaimConnection *gc)
504 { 504 {
505 MsnSession *session = gc->proto_data; 505 MsnSession *session = gc->proto_data;
506 506
507 if (session->http_method) 507 if (session != NULL)
508 msn_http_session_uninit(session); 508 {
509 509 if (session->http_method)
510 msn_session_destroy(session); 510 msn_http_session_uninit(session);
511
512 msn_session_destroy(session);
513 }
511 514
512 gc->proto_data = NULL; 515 gc->proto_data = NULL;
513 } 516 }
514 517
515 static int 518 static int