mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Fixed memleak in recode.c, fixed typo in special_vars.txt, fixed bug 105, fixed bug 106
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3295 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
55bcc420a7
commit
8ea717b676
26 changed files with 662 additions and 202 deletions
|
|
@ -23,7 +23,6 @@
|
|||
#include "modules.h"
|
||||
#include "signals.h"
|
||||
#include "commands.h"
|
||||
#include "recode.h"
|
||||
#include "settings.h"
|
||||
|
||||
#include "levels.h"
|
||||
|
|
@ -160,7 +159,7 @@ void printformat_module_gui(const char *module, int formatnum, ...)
|
|||
static void print_line(TEXT_DEST_REC *dest, const char *text)
|
||||
{
|
||||
THEME_REC *theme;
|
||||
char *str, *recoded, *tmp, *stripped;
|
||||
char *str, *tmp, *stripped;
|
||||
|
||||
g_return_if_fail(dest != NULL);
|
||||
g_return_if_fail(text != NULL);
|
||||
|
|
@ -171,15 +170,12 @@ static void print_line(TEXT_DEST_REC *dest, const char *text)
|
|||
format_add_lineend(text, tmp);
|
||||
g_free_not_null(tmp);
|
||||
|
||||
recoded = recode_in(str, dest->target);
|
||||
|
||||
/* send both the formatted + stripped (for logging etc.) */
|
||||
stripped = strip_codes(recoded);
|
||||
signal_emit_id(signal_print_text, 3, dest, recoded, stripped);
|
||||
stripped = strip_codes(str);
|
||||
signal_emit_id(signal_print_text, 3, dest, str, stripped);
|
||||
g_free_and_null(dest->hilight_color);
|
||||
|
||||
g_free(str);
|
||||
g_free(recoded);
|
||||
g_free(stripped);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue