Mercurial > pidgin
comparison src/protocols/msn/slplink.c @ 11595:ecd49b9a48b7
[gaim-migrate @ 13865]
Fix a msn ft crash that I introduced.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 03 Oct 2005 02:59:17 +0000 |
parents | 2cb95478ef9c |
children | cdab645d1ad6 |
comparison
equal
deleted
inserted
replaced
11594:8ee38f9428d5 | 11595:ecd49b9a48b7 |
---|---|
276 msn_slplink_send_msgpart(slpmsg->slplink, slpmsg); | 276 msn_slplink_send_msgpart(slpmsg->slplink, slpmsg); |
277 } | 277 } |
278 else | 278 else |
279 { | 279 { |
280 /* The whole message has been sent */ | 280 /* The whole message has been sent */ |
281 | |
282 if (slpmsg->flags == 0x20 || slpmsg->flags == 0x1000030) | 281 if (slpmsg->flags == 0x20 || slpmsg->flags == 0x1000030) |
283 { | 282 { |
284 if ((slpmsg->slpcall != NULL) && | 283 if (slpmsg->slpcall != NULL) |
285 (slpmsg->slpcall->cb != NULL)) | |
286 { | 284 { |
287 slpmsg->slpcall->cb(slpmsg->slpcall, NULL, 0); | 285 if (slpmsg->slpcall->cb) |
286 slpmsg->slpcall->cb(slpmsg->slpcall, | |
287 NULL, 0); | |
288 | |
289 msn_slp_call_destroy(slpmsg->slpcall); | |
288 } | 290 } |
289 } | 291 } |
290 } | 292 } |
291 | 293 |
292 slpmsg->msgs = g_list_remove(slpmsg->msgs, msg); | 294 slpmsg->msgs = g_list_remove(slpmsg->msgs, msg); |