Mercurial > pidgin
comparison src/server.c @ 14035:8bda65b88e49
[gaim-migrate @ 16638]
A bunch of small changes. Mostly remove "if not null" checks before
calling g_free, g_list_free, g_slist_free and g_strdup. Also use
g_list_foreach() to call g_free to free strings in an array. And
some whitespace changes here and there.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sat, 05 Aug 2006 08:27:39 +0000 |
| parents | ad171112d52c |
| children |
comparison
equal
deleted
inserted
replaced
| 14034:0839a7b71325 | 14035:8bda65b88e49 |
|---|---|
| 364 prpl_info->chat_invite(g, id, buffy, name); | 364 prpl_info->chat_invite(g, id, buffy, name); |
| 365 | 365 |
| 366 gaim_signal_emit(gaim_conversations_get_handle(), "chat-invited-user", | 366 gaim_signal_emit(gaim_conversations_get_handle(), "chat-invited-user", |
| 367 conv, name, buffy); | 367 conv, name, buffy); |
| 368 | 368 |
| 369 if (buffy) | 369 g_free(buffy); |
| 370 g_free(buffy); | |
| 371 } | 370 } |
| 372 | 371 |
| 373 /* Ya know, nothing uses this except gaim_conversation_destroy(), | 372 /* Ya know, nothing uses this except gaim_conversation_destroy(), |
| 374 * I think I'll just merge it into that later... | 373 * I think I'll just merge it into that later... |
| 375 * Then again, something might want to use this, from outside prpl-land | 374 * Then again, something might want to use this, from outside prpl-land |
| 469 gaim_signal_emit_return_1(gaim_conversations_get_handle(), | 468 gaim_signal_emit_return_1(gaim_conversations_get_handle(), |
| 470 "receiving-im-msg", gc->account, | 469 "receiving-im-msg", gc->account, |
| 471 &angel, &buffy, cnv, &flags)); | 470 &angel, &buffy, cnv, &flags)); |
| 472 | 471 |
| 473 if (!buffy || !angel || plugin_return) { | 472 if (!buffy || !angel || plugin_return) { |
| 474 if (buffy) | 473 g_free(buffy); |
| 475 g_free(buffy); | 474 g_free(angel); |
| 476 if (angel) | |
| 477 g_free(angel); | |
| 478 return; | 475 return; |
| 479 } | 476 } |
| 480 | 477 |
| 481 name = angel; | 478 name = angel; |
| 482 message = buffy; | 479 message = buffy; |
| 561 * We don't want to send an autoresponse in response to the other user's | 558 * We don't want to send an autoresponse in response to the other user's |
| 562 * autoresponse. We do, however, not want to then send one in response to the | 559 * autoresponse. We do, however, not want to then send one in response to the |
| 563 * _next_ message, so we still set lar->sent to now. | 560 * _next_ message, so we still set lar->sent to now. |
| 564 */ | 561 */ |
| 565 lar->sent = now; | 562 lar->sent = now; |
| 566 | 563 |
| 567 if (!(flags & GAIM_MESSAGE_AUTO_RESP)) | 564 if (!(flags & GAIM_MESSAGE_AUTO_RESP)) |
| 568 { | 565 { |
| 569 serv_send_im(gc, name, away_msg, GAIM_MESSAGE_AUTO_RESP); | 566 serv_send_im(gc, name, away_msg, GAIM_MESSAGE_AUTO_RESP); |
| 570 | 567 |
| 571 gaim_conv_im_write(GAIM_CONV_IM(cnv), NULL, away_msg, | 568 gaim_conv_im_write(GAIM_CONV_IM(cnv), NULL, away_msg, |
