mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Fixed a few memory leaks
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2035 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
05d3bb58cb
commit
15933dcea0
@ -402,28 +402,32 @@ OUTPUT:
|
||||
MODULE = Irssi::Core PACKAGE = Irssi::Server
|
||||
#*******************************
|
||||
|
||||
char *
|
||||
void
|
||||
parse_special(server, cmd, data="", flags=0)
|
||||
Irssi::Server server
|
||||
char *cmd
|
||||
char *data
|
||||
int flags
|
||||
CODE:
|
||||
RETVAL = parse_special_string(cmd, server, NULL, data, NULL, flags);
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
PREINIT:
|
||||
char *ret;
|
||||
PPCODE:
|
||||
ret = parse_special_string(cmd, server, NULL, data, NULL, flags);
|
||||
XPUSHs(sv_2mortal(new_pv(ret)));
|
||||
g_free_not_null(ret);
|
||||
|
||||
#*******************************
|
||||
MODULE = Irssi::Core PACKAGE = Irssi::Windowitem
|
||||
#*******************************
|
||||
|
||||
char *
|
||||
void
|
||||
parse_special(item, cmd, data="", flags=0)
|
||||
Irssi::Windowitem item
|
||||
char *cmd
|
||||
char *data
|
||||
int flags
|
||||
CODE:
|
||||
RETVAL = parse_special_string(cmd, item->server, item, data, NULL, flags);
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
PREINIT:
|
||||
char *ret;
|
||||
PPCODE:
|
||||
ret = parse_special_string(cmd, item->server, item, data, NULL, flags);
|
||||
XPUSHs(sv_2mortal(new_pv(ret)));
|
||||
g_free_not_null(ret);
|
||||
|
Loading…
Reference in New Issue
Block a user