Mercurial > pidgin.yaz
comparison src/protocols/msn/httpconn.c @ 10504:1a97d5e88d12
[gaim-migrate @ 11796]
Lots of things here:
- Several memory leak fixes
- A few invalid memory access fixes
- Fix a yahoo crash going idle when away
- Fix Add user in chats to actually fill in the screenname
- Add gaim_account_{get,set}_enabled to perl
- Fix command priorities (fixes /me in IRC)
- Fix MSN notification server transfer to be quiet about it
- Fix MSN blist sync if user has insane friendly name
- Make the docklet less crash-happy if it fails to embed in 3 seconds
- Only probe for native plugins with the correct file extension
- 1 typo fix :)
... and quite possibly something else I forgot.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 11 Jan 2005 17:25:06 +0000 |
parents | bcfea6c3d5c9 |
children | ace8cd0de6ea |
comparison
equal
deleted
inserted
replaced
10503:776586d647e3 | 10504:1a97d5e88d12 |
---|---|
66 gaim_debug_info("msn", "destroy httpconn (%p)\n", httpconn); | 66 gaim_debug_info("msn", "destroy httpconn (%p)\n", httpconn); |
67 | 67 |
68 if (httpconn->connected) | 68 if (httpconn->connected) |
69 msn_httpconn_disconnect(httpconn); | 69 msn_httpconn_disconnect(httpconn); |
70 | 70 |
71 if (httpconn->full_session_id != NULL) | |
72 g_free(httpconn->full_session_id); | |
73 | |
74 if (httpconn->session_id != NULL) | |
75 g_free(httpconn->session_id); | |
76 | |
77 if (httpconn->host != NULL) | |
78 g_free(httpconn->host); | |
79 | |
71 g_free(httpconn); | 80 g_free(httpconn); |
72 } | 81 } |
73 | 82 |
74 static ssize_t | 83 static ssize_t |
75 write_raw(MsnHttpConn *httpconn, const char *header, | 84 write_raw(MsnHttpConn *httpconn, const char *header, |
667 t = strchr(full_session_id, '.'); | 676 t = strchr(full_session_id, '.'); |
668 session_id = g_strndup(full_session_id, t - full_session_id); | 677 session_id = g_strndup(full_session_id, t - full_session_id); |
669 | 678 |
670 if (!wasted) | 679 if (!wasted) |
671 { | 680 { |
672 if (httpconn->full_session_id != NULL); | 681 if (httpconn->full_session_id != NULL) |
673 g_free(httpconn->full_session_id); | 682 g_free(httpconn->full_session_id); |
674 | 683 |
675 httpconn->full_session_id = full_session_id; | 684 httpconn->full_session_id = full_session_id; |
676 | 685 |
677 if (httpconn->session_id != NULL); | 686 if (httpconn->session_id != NULL) |
678 g_free(httpconn->session_id); | 687 g_free(httpconn->session_id); |
679 | 688 |
680 httpconn->session_id = session_id; | 689 httpconn->session_id = session_id; |
681 | 690 |
682 if (httpconn->host != NULL); | 691 if (httpconn->host != NULL) |
683 g_free(httpconn->host); | 692 g_free(httpconn->host); |
684 | 693 |
685 httpconn->host = gw_ip; | 694 httpconn->host = gw_ip; |
686 } | 695 } |
687 else | 696 else |
688 { | 697 { |
689 MsnServConn *servconn; | 698 MsnServConn *servconn; |
690 | 699 |
691 /* It's going to die. */ | 700 /* It's going to die. */ |
701 /* poor thing */ | |
692 | 702 |
693 servconn = httpconn->servconn; | 703 servconn = httpconn->servconn; |
694 | 704 |
695 if (servconn != NULL) | 705 if (servconn != NULL) |
696 servconn->wasted = TRUE; | 706 servconn->wasted = TRUE; |
697 | 707 |
698 g_free(full_session_id); | 708 g_free(full_session_id); |
709 g_free(session_id); | |
699 g_free(gw_ip); | 710 g_free(gw_ip); |
700 } | 711 } |
701 } | 712 } |
702 | 713 |
703 g_free(header); | 714 g_free(header); |