Mercurial > pidgin
diff libpurple/protocols/msn/cmdproc.c @ 31036:05e05d96ba75
Use the unref functions everywhere, instead of destroy. I also removed
some unnecessary checks in the destroy functions, since it's already
OK from the unref.
| author | Elliott Sales de Andrade <qulogic@pidgin.im> |
|---|---|
| date | Wed, 15 Dec 2010 23:10:13 +0000 |
| parents | b1022aa66b8a |
| children | 6ce4f2272abc |
line wrap: on
line diff
--- a/libpurple/protocols/msn/cmdproc.c Wed Dec 15 22:21:07 2010 +0000 +++ b/libpurple/protocols/msn/cmdproc.c Wed Dec 15 23:10:13 2010 +0000 @@ -58,7 +58,7 @@ msn_history_destroy(cmdproc->history); if (cmdproc->last_cmd != NULL) - msn_command_destroy(cmdproc->last_cmd); + msn_command_unref(cmdproc->last_cmd); g_hash_table_destroy(cmdproc->multiparts); @@ -329,7 +329,7 @@ show_debug_cmd(cmdproc, TRUE, command); if (cmdproc->last_cmd != NULL) - msn_command_destroy(cmdproc->last_cmd); + msn_command_unref(cmdproc->last_cmd); cmdproc->last_cmd = msn_command_from_string(command);
