Mercurial > hg > nnchat
comparison nnchat.c @ 314:77f2093f9310
Fix a memleak.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 11 Jun 2011 06:01:40 +0300 |
parents | 7c96f52e9a3b |
children | 864e6e52ed69 |
comparison
equal
deleted
inserted
replaced
313:7c96f52e9a3b | 314:77f2093f9310 |
---|---|
645 if (win != NULL) | 645 if (win != NULL) |
646 printMsgQ(win, isIgnored, "½5½<½%d½%s½5½>½0½ %s\n", isMine ? 14 : 15, isMine ? optUserName : name, msg); | 646 printMsgQ(win, isIgnored, "½5½<½%d½%s½5½>½0½ %s\n", isMine ? 14 : 15, isMine ? optUserName : name, msg); |
647 else | 647 else |
648 printMsgQ(NULL, isIgnored, "½11½%s½0½\n", h); | 648 printMsgQ(NULL, isIgnored, "½11½%s½0½\n", h); |
649 | 649 |
650 th_free(name); | |
650 th_free(h); | 651 th_free(h); |
651 } else { | 652 } else { |
652 /* It's an action (/me) */ | 653 /* It's an action (/me) */ |
653 char *h = nn_decode_str2(t); | 654 char *h = nn_decode_str2(t); |
654 printMsgQ(NULL, isIgnored, "½9½* %s½0½\n", h); | 655 printMsgQ(NULL, isIgnored, "½9½* %s½0½\n", h); |