Mercurial > pidgin
comparison libpurple/protocols/msn/switchboard.c @ 30952:b4285ea42b6e
msn_message_destroy() calls msn_message_unref() if refcount>0. This is
always the case. So change all code to call msn_message_unref() directly
and change msn_message_destroy to be a private function. This should
be more clear.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 22 Nov 2010 07:40:23 +0000 |
parents | 2de522fa534a |
children | b1022aa66b8a |
comparison
equal
deleted
inserted
replaced
30951:a328691c761a | 30952:b4285ea42b6e |
---|---|
223 msn_message_set_flag(msg, 'U'); | 223 msn_message_set_flag(msg, 'U'); |
224 msn_message_set_bin_data(msg, MSN_CLIENTINFO, strlen(MSN_CLIENTINFO)); | 224 msn_message_set_bin_data(msg, MSN_CLIENTINFO, strlen(MSN_CLIENTINFO)); |
225 | 225 |
226 msn_switchboard_send_msg(swboard, msg, TRUE); | 226 msn_switchboard_send_msg(swboard, msg, TRUE); |
227 | 227 |
228 msn_message_destroy(msg); | 228 msn_message_unref(msg); |
229 } | 229 } |
230 | 230 |
231 static void | 231 static void |
232 msn_switchboard_add_user(MsnSwitchBoard *swboard, const char *user) | 232 msn_switchboard_add_user(MsnSwitchBoard *swboard, const char *user) |
233 { | 233 { |