diff options
author | Timo Sirainen <cras@irssi.org> | 2002-05-13 17:57:19 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-05-13 17:57:19 +0000 |
commit | 2adba92338ce4acc6c52300ba76907686ec42284 (patch) | |
tree | afcaa2fd122e063ac8f0409d1bf1c4ba7731e600 /src/perl/ui/Formats.xs | |
parent | d68bbeb5efc0ecefe9e86ce4323661c5c282cee4 (diff) | |
download | irssi-2adba92338ce4acc6c52300ba76907686ec42284.zip |
fixed memory leaks with several functions.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2789 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/ui/Formats.xs')
-rw-r--r-- | src/perl/ui/Formats.xs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/perl/ui/Formats.xs b/src/perl/ui/Formats.xs index d016f07d..f7a5414b 100644 --- a/src/perl/ui/Formats.xs +++ b/src/perl/ui/Formats.xs @@ -26,9 +26,15 @@ format_real_length(str, len) char *str int len -char * +void strip_codes(input) char *input +PREINIT: + char *ret; +PPCODE: + ret = strip_codes(input); + xPUSHs(sv_2mortal(new_pv(ret))); + g_free(ret); void format_get_text(window, module, server, target, formatnum, ...) |