Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/msnutils.c @ 20983:64644b98c20c
Avoid unnecessary alloc/free.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 17 Oct 2007 18:20:41 +0000 |
parents | 723b5a2f91ce |
children | bc731b26335c |
comparison
equal
deleted
inserted
replaced
20979:cb5cbe04a340 | 20983:64644b98c20c |
---|---|
443 fontface = g_strdup("MS Sans Serif"); | 443 fontface = g_strdup("MS Sans Serif"); |
444 | 444 |
445 *attributes = g_strdup_printf("FN=%s; EF=%s; CO=%s; PF=0; RL=%c", | 445 *attributes = g_strdup_printf("FN=%s; EF=%s; CO=%s; PF=0; RL=%c", |
446 encode_spaces(fontface), | 446 encode_spaces(fontface), |
447 fonteffect, fontcolor, direction); | 447 fonteffect, fontcolor, direction); |
448 *message = g_strdup(msg); | 448 *message = msg; |
449 | 449 |
450 g_free(fontface); | 450 g_free(fontface); |
451 g_free(msg); | |
452 } | 451 } |
453 | 452 |
454 void | 453 void |
455 msn_parse_socket(const char *str, char **ret_host, int *ret_port) | 454 msn_parse_socket(const char *str, char **ret_host, int *ret_port) |
456 { | 455 { |